static void
gst_wasapi_device_provider_init (GstWasapiDeviceProvider * provider)
{
- CoInitialize (NULL);
+ CoInitializeEx (NULL, COINIT_MULTITHREADED);
}
static void
self->event_handle = CreateEvent (NULL, FALSE, FALSE, NULL);
self->client_needs_restart = FALSE;
- CoInitialize (NULL);
+ CoInitializeEx (NULL, COINIT_MULTITHREADED);
}
static void
guint bpf, rate, devicep_frames;
HRESULT hr;
- CoInitialize (NULL);
+ CoInitializeEx (NULL, COINIT_MULTITHREADED);
if (gst_wasapi_sink_can_audioclient3 (self)) {
if (!gst_wasapi_util_initialize_audioclient3 (GST_ELEMENT (self), spec,
self->event_handle = CreateEvent (NULL, FALSE, FALSE, NULL);
self->client_needs_restart = FALSE;
- CoInitialize (NULL);
+ CoInitializeEx (NULL, COINIT_MULTITHREADED);
}
static void
guint bpf, rate, devicep_frames, buffer_frames;
HRESULT hr;
- CoInitialize (NULL);
+ CoInitializeEx (NULL, COINIT_MULTITHREADED);
if (gst_wasapi_src_can_audioclient3 (self)) {
if (!gst_wasapi_util_initialize_audioclient3 (GST_ELEMENT (self), spec,