From: Mike Brady Date: Sun, 6 May 2018 16:25:43 +0000 (+0100) Subject: Replace snd_pcm_drop with snd_pcm_drain. X-Git-Tag: 3.2RC7~3^2~1^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=709ffa591551a072164a72e2b6316101d3398e83;p=thirdparty%2Fshairport-sync.git Replace snd_pcm_drop with snd_pcm_drain. --- diff --git a/audio_alsa.c b/audio_alsa.c index defd798e..3310eeaa 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -892,8 +892,11 @@ static void flush(void) { int derr; do_mute(1); if (alsa_handle) { - if ((derr = snd_pcm_drop(alsa_handle))) - debug(1, "Error %d (\"%s\") draining the output device.", derr, snd_strerror(derr)); + + debug(1,"Start drain."); + if ((derr = snd_pcm_drain(alsa_handle))) + debug(1, "Error %d (\"%s\") draining output device.", derr, snd_strerror(derr)); + debug(1,"Finish drain."); if ((derr = snd_pcm_hw_free(alsa_handle))) debug(1, "Error %d (\"%s\") freeing the output device hardware.", derr, snd_strerror(derr));