diff options
author | wm4 <wm4@nowhere> | 2014-12-05 16:00:25 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-05 16:04:05 +0100 |
commit | 020897b5d3e50d69c6ae3da9cf7370b46250f169 (patch) | |
tree | e3ed9174335cb4056353954dc61c8d11353b98e9 /audio | |
parent | c6deee380141d1e5d4e99d3491a19f218df239d7 (diff) | |
download | mpv-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.)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_alsa.c | 6 |
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; |