mirror of
https://github.com/mpv-player/mpv
synced 2025-02-22 07:46:55 +00:00
audio/out: fix initialization failure with win32
mp_make_wakeup_pipe() always fails on win32. If this call fails on Linux (and e.g. ao_alsa is used), this will probably burn CPU since poll() won't work on the invalid file descriptor, but whatever, the failure case is obscure enough.
This commit is contained in:
parent
ef600041ba
commit
ac62244983
@ -364,8 +364,7 @@ static int init(struct ao *ao)
|
||||
pthread_mutex_init(&p->lock, NULL);
|
||||
pthread_cond_init(&p->wakeup, NULL);
|
||||
pthread_cond_init(&p->wakeup_drain, NULL);
|
||||
if (mp_make_wakeup_pipe(p->wakeup_pipe) < 0)
|
||||
goto err;
|
||||
mp_make_wakeup_pipe(p->wakeup_pipe);
|
||||
|
||||
p->buffer = mp_audio_buffer_create(ao);
|
||||
mp_audio_buffer_reinit_fmt(p->buffer, ao->format,
|
||||
|
Loading…
Reference in New Issue
Block a user