From 020897b5d3e50d69c6ae3da9cf7370b46250f169 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 5 Dec 2014 16:00:25 +0100 Subject: ao_alsa: minor simplification Whether we print it as warning or error doesn't really matter; we continue anyway. (I don't actually know what the implications of running in non-blocking mode are; for what's it worth, when I tested with explicitly changing to non-blocking, it seemed to work fine anyway, so don't change that part.) --- audio/out/ao_alsa.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index 86393aef19..c7407b0890 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -478,11 +478,7 @@ static int init(struct ao *ao) CHECK_ALSA_ERROR("Playback open error"); err = snd_pcm_nonblock(p->alsa, 0); - if (err < 0) { - MP_ERR(ao, "Error setting block-mode: %s.\n", snd_strerror(err)); - } else { - MP_VERBOSE(ao, "pcm opened in blocking mode\n"); - } + CHECK_ALSA_WARN("Unable to set blocking mode"); snd_pcm_hw_params_t *alsa_hwparams; snd_pcm_sw_params_t *alsa_swparams; -- cgit v1.2.3