[vlc-commits] winstore: Fix ActivateDevice

Hugo Beauzée-Luyssen git at videolan.org
Wed Jan 28 12:27:46 CET 2015


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jan  9 10:39:00 2015 +0100| [5979d796f614f8407896939e333f8c70ba65e9fd] | committer: Hugo Beauzée-Luyssen

winstore: Fix ActivateDevice

The opaque pointer actually is the device, not p_sys

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5979d796f614f8407896939e333f8c70ba65e9fd
---

 modules/audio_output/winstore.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/audio_output/winstore.c b/modules/audio_output/winstore.c
index 7dbe747..0c0190b 100644
--- a/modules/audio_output/winstore.c
+++ b/modules/audio_output/winstore.c
@@ -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;
 }
 



More information about the vlc-commits mailing list