]> git.sesse.net Git - vlc/commitdiff
winstore: Fix ActivateDevice
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Fri, 9 Jan 2015 09:39:00 +0000 (10:39 +0100)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 28 Jan 2015 11:24:42 +0000 (12:24 +0100)
The opaque pointer actually is the device, not p_sys

modules/audio_output/winstore.c

index 7dbe7477a9b850095e87bfa6757a51a493a43ad5..0c0190bbaeff104d8061ffe472229e732e81da61 100644 (file)
@@ -101,10 +101,9 @@ static void Flush(audio_output_t *aout, bool wait)
 static HRESULT ActivateDevice(void *opaque, REFIID iid, PROPVARIANT *actparms,
                               void **restrict pv)
 {
-    aout_sys_t *sys = opaque;
+    (void) iid; (void) actparms;
+    *pv = opaque;
 
-    (void)iid; (void)actparms;
-    *pv = sys->client;
     return S_OK;
 }