alsactl: flush stdout for monitor command

It may be useful to pipe the output to another program.

Fixes: https://github.com/alsa-project/alsa-utils/pull/109
Signed-off-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Alex Xu (Hello71) 2021-08-24 10:39:12 -04:00 committed by Jaroslav Kysela
parent 8adbb2c275
commit d05ac4a078

View file

@ -235,6 +235,7 @@ static int print_event(snd_ctl_t *ctl, const char *name)
if (mask & SND_CTL_EVENT_MASK_TLV)
printf(" TLV");
printf("\n");
fflush(stdout);
return 0;
}