diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-28 06:51:06 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-28 10:48:36 -0800 |
commit | 14f9719a65c8796d711df2053b1be785fe64f484 (patch) | |
tree | 71606573835cd8f852979c37f7bc9429ddf4043b /audio/out/ao_wasapi_utils.h | |
parent | 4f208e6f68690417163418f182023cc4136c7413 (diff) | |
download | mpv-14f9719a65c8796d711df2053b1be785fe64f484.tar.bz2 mpv-14f9719a65c8796d711df2053b1be785fe64f484.tar.xz |
ao/wasapi: make functions return bool that were acting like it
this involved inverting the logic of find_formats, enumerate_devies
and wasapi_fill_VistaBlob. The latter two were trivial as their return
values were not actually checked (to be fixed in a later
commit).
Diffstat (limited to 'audio/out/ao_wasapi_utils.h')
-rwxr-xr-x | audio/out/ao_wasapi_utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/out/ao_wasapi_utils.h b/audio/out/ao_wasapi_utils.h index 9d5a8c7edf..00caba659a 100755 --- a/audio/out/ao_wasapi_utils.h +++ b/audio/out/ao_wasapi_utils.h @@ -34,12 +34,12 @@ char *mp_PKEY_to_str_buf(char *buf, size_t buf_size, const PROPERTYKEY *pkey); #define mp_GUID_to_str(guid) mp_GUID_to_str_buf((char[40]){0}, 40, (guid)) #define mp_PKEY_to_str(pkey) mp_PKEY_to_str_buf((char[42]){0}, 42, (pkey)) -int wasapi_fill_VistaBlob(wasapi_state *state); +bool wasapi_fill_VistaBlob(wasapi_state *state); const char *wasapi_explain_err(const HRESULT hr); -int wasapi_enumerate_devices(struct mp_log *log, struct ao *ao, - struct ao_device_list *list); +bool wasapi_enumerate_devices(struct mp_log *log, struct ao *ao, + struct ao_device_list *list); int wasapi_validate_device(struct mp_log *log, const m_option_t *opt, struct bstr name, struct bstr param); |