From: Jaroslav Kysela Date: Sun, 14 Oct 2018 15:00:26 +0000 (+0200) Subject: aplay: add missing block brackets X-Git-Tag: v1.1.7~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=fb975880254634f09e338a1a554b2809206c9b49;p=alsa-utils.git aplay: add missing block brackets Signed-off-by: Jaroslav Kysela --- diff --git a/aplay/aplay.c b/aplay/aplay.c index 63ec9ef..efc1eb4 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -1670,13 +1670,15 @@ static void suspend(void) { int res; - if (!quiet_mode) + if (!quiet_mode) { fprintf(stderr, _("Suspended. Trying resume. ")); fflush(stderr); + } while ((res = snd_pcm_resume(handle)) == -EAGAIN) sleep(1); /* wait until suspend flag is released */ if (res < 0) { - if (!quiet_mode) + if (!quiet_mode) { fprintf(stderr, _("Failed. Restarting stream. ")); fflush(stderr); + } if ((res = snd_pcm_prepare(handle)) < 0) { error(_("suspend: prepare error: %s"), snd_strerror(res)); prg_exit(EXIT_FAILURE);