mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 19:22:48 +00:00
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
This commit is contained in:
parent
102a083171
commit
d448dd5bf2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user