[vlc-commits] winstore: Acquire the IAudioClient before using it
Hugo Beauzée-Luyssen
git at videolan.org
Fri Feb 27 13:41:44 CET 2015
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 16 11:39:51 2015 +0100| [13c9aa1c286878e8ded2d879d93a0d63613e17bb] | committer: Hugo Beauzée-Luyssen
winstore: Acquire the IAudioClient before using it
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=13c9aa1c286878e8ded2d879d93a0d63613e17bb
---
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