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:
parent
c6deee3801
commit
020897b5d3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user