From: Mike Brady Date: Mon, 17 Jun 2019 09:04:23 +0000 (+0100) Subject: make snd_pcm_recover silent when the debug level is 0, not the other way around,... X-Git-Tag: 3.3.2~4^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46c761aa680d25609e60c663aad25e54dceca16;p=thirdparty%2Fshairport-sync.git make snd_pcm_recover silent when the debug level is 0, not the other way around, duh. --- diff --git a/audio_alsa.c b/audio_alsa.c index bac1d4b6..692d73c6 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -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)); }