aplay: add missing block brackets

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2018-10-14 17:00:26 +02:00
parent cc46d02f58
commit fb97588025

View file

@ -1670,13 +1670,15 @@ static void suspend(void)
{ {
int res; int res;
if (!quiet_mode) if (!quiet_mode) {
fprintf(stderr, _("Suspended. Trying resume. ")); fflush(stderr); fprintf(stderr, _("Suspended. Trying resume. ")); fflush(stderr);
}
while ((res = snd_pcm_resume(handle)) == -EAGAIN) while ((res = snd_pcm_resume(handle)) == -EAGAIN)
sleep(1); /* wait until suspend flag is released */ sleep(1); /* wait until suspend flag is released */
if (res < 0) { if (res < 0) {
if (!quiet_mode) if (!quiet_mode) {
fprintf(stderr, _("Failed. Restarting stream. ")); fflush(stderr); fprintf(stderr, _("Failed. Restarting stream. ")); fflush(stderr);
}
if ((res = snd_pcm_prepare(handle)) < 0) { if ((res = snd_pcm_prepare(handle)) < 0) {
error(_("suspend: prepare error: %s"), snd_strerror(res)); error(_("suspend: prepare error: %s"), snd_strerror(res));
prg_exit(EXIT_FAILURE); prg_exit(EXIT_FAILURE);