]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Replace snd_pcm_drop with snd_pcm_drain.
authorMike Brady <mikebrady@eircom.net>
Sun, 6 May 2018 16:25:43 +0000 (17:25 +0100)
committerMike Brady <mikebrady@eircom.net>
Sun, 6 May 2018 16:25:43 +0000 (17:25 +0100)
audio_alsa.c

index defd798e425402fafcdbe7e0f5f29c8ad178fcab..3310eeaaca16a2ef01f292a0c88554f3da67d285 100644 (file)
@@ -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));