Commit 72b2a691 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Wim32: use CoInitializeEx() instead of CoInitialize()

parent fba54e1f
......@@ -2019,7 +2019,7 @@ static int FindDevices( vlc_object_t *p_this, const char *psz_name,
list<string> list_devices;
/* Initialize OLE/COM */
CoInitialize( 0 );
CoInitializeEx( NULL, COINIT_APARTMENTTHREADED );
FindCaptureDevice( p_this, NULL, &list_devices, b_audio );
......@@ -2062,7 +2062,7 @@ static int ConfigDevicesCallback( vlc_object_t *p_this, char const *psz_name,
psz_device = strdup( newval.psz_string );
/* Initialize OLE/COM */
CoInitialize( 0 );
CoInitializeEx( NULL, COINIT_APARTMENTTHREADED );
p_item = config_FindConfig( p_this, psz_name );
......
......@@ -1429,7 +1429,7 @@ static int EncOpen( vlc_object_t *p_this )
ldt_fs_t *ldt_fs = Setup_LDT_Keeper();
#else
/* Initialize OLE/COM */
CoInitialize( 0 );
CoInitializeEx( NULL, COINIT_APARTMENTTHREADED );
#endif /* LOADER */
if( LoadDMO( p_this, &hmsdmo_dll, &p_dmo, &p_enc->fmt_out, true )
......
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