diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-17 23:30:49 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-17 23:32:13 -0800 |
commit | ebd161b2569ad9374616b3b973f2ccdb73be6aff (patch) | |
tree | ade5a1d3be3a39b9e25ae7787640bd5f232c5e42 /audio/out/ao_openal.c | |
parent | d9bac96a9d74f02a473f041e29097df9451368fb (diff) | |
download | mpv-ebd161b2569ad9374616b3b973f2ccdb73be6aff.tar.bz2 mpv-ebd161b2569ad9374616b3b973f2ccdb73be6aff.tar.xz |
ao/wasapi: fix race condition in uninit on failure.
When the audio thread fails to properly init, it signals failure
to the main thread, AND THEN starts to clean up. For this to work,
ao_init callback must not return until the thread's cleanup is finished.
This is correctly handled in the ao_uninit callback by waiting for
the thread to exit, so just call that to clean up the main thread.
I have no idea why I didn't do this in the first place.
Diffstat (limited to 'audio/out/ao_openal.c')
0 files changed, 0 insertions, 0 deletions