summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-05 16:00:25 +0100
committerwm4 <wm4@nowhere>2014-12-05 16:04:05 +0100
commit020897b5d3e50d69c6ae3da9cf7370b46250f169 (patch)
treee3ed9174335cb4056353954dc61c8d11353b98e9
parentc6deee380141d1e5d4e99d3491a19f218df239d7 (diff)
downloadmpv-020897b5d3e50d69c6ae3da9cf7370b46250f169.tar.bz2
mpv-020897b5d3e50d69c6ae3da9cf7370b46250f169.tar.xz
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.)
-rw-r--r--audio/out/ao_alsa.c6
1 files changed, 1 insertions, 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;