diff options
author | wm4 <wm4@nowhere> | 2020-06-04 12:42:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-06-04 12:42:36 +0200 |
commit | c67f36dd18f22dc027af129098a998866e4c2a33 (patch) | |
tree | 616102bc399ea02a21b22c17eee016a905d699f3 /demux | |
parent | 5f49009849271ecd995f9f41e4eb2a36a0fc024a (diff) | |
download | mpv-c67f36dd18f22dc027af129098a998866e4c2a33.tar.bz2 mpv-c67f36dd18f22dc027af129098a998866e4c2a33.tar.xz |
audio: fix deadlock on draining
The playback thread may obviously still fill the AO'S entire audio
buffer, which means it unset p->draining, which makes no sense and broke
ao_drain(). So just don't unset it here.
Not sure if this really fixes this, it was hard to reproduce. Regression
due to the recent changes. There are probably many more bugs like this.
Stupid asynchronous nightmare state machine. Give me a language that
supports formal verification (in presence of concurrency) or something.
Diffstat (limited to 'demux')
0 files changed, 0 insertions, 0 deletions