1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-01 11:50:48 +00:00

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.)
This commit is contained in:
wm4 2014-12-05 16:00:25 +01:00
parent c6deee3801
commit 020897b5d3

View File

@ -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;