Commit fb6c8449 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

wasapi: assign session identifier (fix #7200)

parent de3ebb99
...@@ -35,6 +35,9 @@ ...@@ -35,6 +35,9 @@
#include <vlc_aout.h> #include <vlc_aout.h>
#include <vlc_charset.h> #include <vlc_charset.h>
DEFINE_GUID (GUID_VLC_AUD_OUT, 0x4533f59d, 0x59ee, 0x00c6,
0xad, 0xb2, 0xc6, 0x8b, 0x50, 0x1a, 0x66, 0x55);
static int Open(vlc_object_t *); static int Open(vlc_object_t *);
static void Close(vlc_object_t *); static void Close(vlc_object_t *);
...@@ -560,7 +563,8 @@ static int Open(vlc_object_t *obj) ...@@ -560,7 +563,8 @@ static int Open(vlc_object_t *obj)
assert(pwf == NULL); assert(pwf == NULL);
hr = IAudioClient_Initialize(sys->client, AUDCLNT_SHAREMODE_SHARED, 0, hr = IAudioClient_Initialize(sys->client, AUDCLNT_SHAREMODE_SHARED, 0,
AOUT_MAX_PREPARE_TIME * 10, 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); CoTaskMemFree(pwf);
if (FAILED(hr)) if (FAILED(hr))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment