[vlc-commits] winstore: Acquire the IAudioClient before using it

Hugo Beauzée-Luyssen git at videolan.org
Fri Feb 27 13:05:36 CET 2015


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 16 11:39:51 2015 +0100| [88b783bf0cf5b1439f983886587af618220488f3] | committer: Hugo Beauzée-Luyssen

winstore: Acquire the IAudioClient before using it

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

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

diff --git a/modules/audio_output/winstore.c b/modules/audio_output/winstore.c
index 4df0bc9..988cada 100644
--- a/modules/audio_output/winstore.c
+++ b/modules/audio_output/winstore.c
@@ -102,6 +102,8 @@ static HRESULT ActivateDevice(void *opaque, REFIID iid, PROPVARIANT *actparms,
                               void **restrict pv)
 {
     (void) iid; (void) actparms;
+    IAudioClient* client = (IAudioClient*)opaque;
+    IAudioClient_AddRef(client);
     *pv = opaque;
 
     return S_OK;



More information about the vlc-commits mailing list