]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
make snd_pcm_recover silent when the debug level is 0, not the other way around,...
authorMike Brady <mikebrady@eircom.net>
Mon, 17 Jun 2019 09:04:23 +0000 (10:04 +0100)
committerMike Brady <mikebrady@eircom.net>
Mon, 17 Jun 2019 09:04:23 +0000 (10:04 +0100)
audio_alsa.c

index bac1d4b6226b33c56854176aab830522ad20cb9c..692d73c6e8e9a9286faf1380c01d6d237ec800a5 100644 (file)
@@ -1623,7 +1623,7 @@ int do_play(void *buf, int samples) {
         measurement_data_is_valid = 0;
         if (ret == -EPIPE) { /* underrun */
           debug(1, "alsa: underrun while writing %d samples to alsa device.", samples);
-          int tret = snd_pcm_recover(alsa_handle, ret, debuglev > 0 ? 1 : 0);
+          int tret = snd_pcm_recover(alsa_handle, ret, debuglev > 0 ? 0 : 1);
           if (tret < 0) {
             warn("alsa: can't recover from SND_PCM_STATE_XRUN: %s.", snd_strerror(tret));
           }