diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2014-12-16 01:56:12 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2014-12-16 03:29:51 -0800 |
commit | 1e5f9d26738244cf5c07eed2c334a73729bfa9dd (patch) | |
tree | 561cd65d10ae0113c53d54164643681d6fdb867d /audio/out/ao_wasapi_changenotify.c | |
parent | 011b7c9c3cb00de6c5e79b0f6620103af5a38779 (diff) | |
download | mpv-1e5f9d26738244cf5c07eed2c334a73729bfa9dd.tar.bz2 mpv-1e5f9d26738244cf5c07eed2c334a73729bfa9dd.tar.xz |
ao/wasapi: use IsEqualGUID and IsEqualPropertyKey
before we were reinventing this wheel
Diffstat (limited to 'audio/out/ao_wasapi_changenotify.c')
-rwxr-xr-x | audio/out/ao_wasapi_changenotify.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/out/ao_wasapi_changenotify.c b/audio/out/ao_wasapi_changenotify.c index 0d299361e4..9d4235a2cd 100755 --- a/audio/out/ao_wasapi_changenotify.c +++ b/audio/out/ao_wasapi_changenotify.c @@ -54,8 +54,8 @@ static HRESULT STDMETHODCALLTYPE sIMMNotificationClient_QueryInterface( IMMNotificationClient* This, REFIID riid, void **ppvObject) { /* Compatible with IMMNotificationClient and IUnknown */ - if (!mp_GUID_compare(&IID_IMMNotificationClient, riid) || - !mp_GUID_compare(&IID_IUnknown, riid)) { + if ( IsEqualGUID(&IID_IMMNotificationClient, riid) || + IsEqualGUID(&IID_IUnknown, riid) ) { *ppvObject = (void *)This; return S_OK; } else { @@ -178,7 +178,7 @@ static HRESULT STDMETHODCALLTYPE sIMMNotificationClient_OnPropertyValueChanged( if (pwstrDeviceId && !wcscmp(change->monitored, pwstrDeviceId)) { MP_VERBOSE(ao, "OnPropertyValueChanged triggered\n"); MP_VERBOSE(ao, "Changed property: "); - if (!mp_PKEY_compare(&PKEY_AudioEngine_DeviceFormat, &key)) { + if ( IsEqualPropertyKey(PKEY_AudioEngine_DeviceFormat, key) ) { MP_VERBOSE(change->ao, "PKEY_AudioEngine_DeviceFormat - requesting ao reload\n"); ao_request_reload(change->ao); |