summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_wasapi_utils.h
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2014-11-14 22:47:28 -0800
committerKevin Mitchell <kevmitch@gmail.com>2014-11-17 04:13:52 -0800
commit3da6f723c6ceba468412f2282ab4f7958ca6f5d7 (patch)
treea175f6a7eff45230f1cb5f473278296aa15e8710 /audio/out/ao_wasapi_utils.h
parente28102f1a8d4c5284fa2d2eb13fe4147eefcd02b (diff)
downloadmpv-3da6f723c6ceba468412f2282ab4f7958ca6f5d7.tar.bz2
mpv-3da6f723c6ceba468412f2282ab4f7958ca6f5d7.tar.xz
ao/wasapi: tidy up better on failure
Before, failures, particularly in the thread loop init, could lead to a bad state for the duration of mpvs execution. Make sure that everything that was initialized gets properly and safely uninitialized.
Diffstat (limited to 'audio/out/ao_wasapi_utils.h')
-rwxr-xr-xaudio/out/ao_wasapi_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/out/ao_wasapi_utils.h b/audio/out/ao_wasapi_utils.h
index d0ba4f0222..24d8daffbc 100755
--- a/audio/out/ao_wasapi_utils.h
+++ b/audio/out/ao_wasapi_utils.h
@@ -37,6 +37,8 @@ int wasapi_enumerate_devices(struct mp_log *log, struct ao *ao,
int wasapi_validate_device(struct mp_log *log, const m_option_t *opt,
struct bstr name, struct bstr param);
+
+void wasapi_dispatch(void);
HRESULT wasapi_thread_init(struct ao *ao);
void wasapi_thread_uninit(struct ao *ao);