diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2015-03-31 14:12:24 -0700 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2015-03-31 14:13:58 -0700 |
commit | e408dd20c76ae2f252a8e760b34aceb297dc46e4 (patch) | |
tree | 41b130986d0fce9a5fe5fc8d6e2320054ff1de38 /audio/out/ao_wasapi_changenotify.c | |
parent | b6c28dd26b6415181b406e1118920b13f80286b4 (diff) | |
download | mpv-e408dd20c76ae2f252a8e760b34aceb297dc46e4.tar.bz2 mpv-e408dd20c76ae2f252a8e760b34aceb297dc46e4.tar.xz |
ao_wasapi: remove redundant casts
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 26c3c7ed0d..83def775d3 100755 --- a/audio/out/ao_wasapi_changenotify.c +++ b/audio/out/ao_wasapi_changenotify.c @@ -127,7 +127,7 @@ static HRESULT STDMETHODCALLTYPE sIMMNotificationClient_OnDefaultDeviceChanged( { change_notify *change = (change_notify *)This; struct ao *ao = change->ao; - struct wasapi_state *state = (struct wasapi_state *)ao->priv; + struct wasapi_state *state = ao->priv; /* don't care about "eCapture" or non-"eMultimedia" roles */ if (flow == eCapture || role != eMultimedia) return S_OK; @@ -198,7 +198,7 @@ static CONST_VTBL IMMNotificationClientVtbl sIMMDeviceEnumeratorVtbl_vtbl = { HRESULT wasapi_change_init(struct ao *ao, bool is_hotplug) { - struct wasapi_state *state = (struct wasapi_state *)ao->priv; + struct wasapi_state *state = ao->priv; struct change_notify *change = &state->change; HRESULT hr; /* COM voodoo to emulate c++ class */ @@ -234,7 +234,7 @@ exit_label: void wasapi_change_uninit(struct ao *ao) { - struct wasapi_state *state = (struct wasapi_state *)ao->priv; + struct wasapi_state *state = ao->priv; struct change_notify *change = &state->change; if (state->pEnumerator && change->client.lpVtbl) { |