From 14f9719a65c8796d711df2053b1be785fe64f484 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Fri, 28 Nov 2014 06:51:06 -0800 Subject: 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). --- audio/out/ao_wasapi_utils.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'audio/out/ao_wasapi_utils.h') 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); -- cgit v1.2.3