]> git.alsa-project.org Git - alsa-utils.git/commitdiff
aplay: add missing block brackets
authorJaroslav Kysela <perex@perex.cz>
Sun, 14 Oct 2018 15:00:26 +0000 (17:00 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 14 Oct 2018 15:00:26 +0000 (17:00 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
aplay/aplay.c

index 63ec9efbebc1b141df3f701715e223ab3b1b6e5b..efc1eb4cae3a1bf7a5aa5077cc9c2d18ffd5dac4 100644 (file)
@@ -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);