From d448dd5bf26408ccced1bd6df8f9eaf62a370c8e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 31 May 2020 14:43:13 +0200 Subject: audio: fix unpausing with some AOs wasapi/coreaudio/sdl were affected, alsa/pusle were not. The confusion here was that resume() has different meaning with pull and push AOs. Fixes: #7772 --- audio/out/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/out/buffer.c b/audio/out/buffer.c index 720cfaa58e..d1563452d1 100644 --- a/audio/out/buffer.c +++ b/audio/out/buffer.c @@ -366,7 +366,7 @@ void ao_resume(struct ao *ao) pthread_mutex_lock(&p->lock); if (p->playing && p->paused) { - if (p->streaming && ao->driver->resume) + if (ao->driver->resume && (!p->streaming || ao->driver->play)) ao->driver->resume(ao); p->paused = false; p->expected_end_time = 0; -- cgit v1.2.3