From ac6224498374906fad8ec7b026f7e9442c9224c5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 26 Jul 2014 20:26:27 +0200 Subject: 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. --- audio/out/push.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'audio/out/push.c') diff --git a/audio/out/push.c b/audio/out/push.c index 0fb6cb3e29..c825310e01 100644 --- a/audio/out/push.c +++ b/audio/out/push.c @@ -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, -- cgit v1.2.3