From: RĂ©mi Denis-Courmont Date: Thu, 2 Aug 2012 14:41:11 +0000 (+0300) Subject: wasapi: assign session identifier (fix #7200) X-Git-Tag: 2.1.0-git~3598 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=fb6c8449b937ce7bd0e7a03e74e71a5e45ac6fe0;p=vlc wasapi: assign session identifier (fix #7200) --- diff --git a/modules/audio_output/wasapi.c b/modules/audio_output/wasapi.c index 5853c533a5..726b88d27f 100644 --- a/modules/audio_output/wasapi.c +++ b/modules/audio_output/wasapi.c @@ -35,6 +35,9 @@ #include #include +DEFINE_GUID (GUID_VLC_AUD_OUT, 0x4533f59d, 0x59ee, 0x00c6, + 0xad, 0xb2, 0xc6, 0x8b, 0x50, 0x1a, 0x66, 0x55); + static int Open(vlc_object_t *); static void Close(vlc_object_t *); @@ -560,7 +563,8 @@ static int Open(vlc_object_t *obj) assert(pwf == NULL); hr = IAudioClient_Initialize(sys->client, AUDCLNT_SHAREMODE_SHARED, 0, AOUT_MAX_PREPARE_TIME * 10, 0, - (hr == S_OK) ? &wf.Format : pwf, NULL); + (hr == S_OK) ? &wf.Format : pwf, + &GUID_VLC_AUD_OUT); CoTaskMemFree(pwf); if (FAILED(hr)) {