diff --git a/modules/access/dshow/dshow.cpp b/modules/access/dshow/dshow.cpp index 05b476cec9612066e61398f0f90057e6f81d8acd..00242aa86b18a814983ea57f3f8e0fb01c450448 100644 --- a/modules/access/dshow/dshow.cpp +++ b/modules/access/dshow/dshow.cpp @@ -2015,7 +2015,7 @@ static int FindDevices( vlc_object_t *p_this, const char *psz_name, { /* Find list of devices */ list<string> list_devices; - if( SUCCEEDED(CoInitializeEx( NULL, COINIT_MULTITTHREADED )) + if( SUCCEEDED(CoInitializeEx( NULL, COINIT_MULTITHREADED )) || SUCCEEDED(CoInitializeEx( NULL, COINIT_APARTMENTTHREADED )) ) { bool b_audio = !strcmp( psz_name, CFG_PREFIX "adev" ); @@ -2056,7 +2056,7 @@ static int ConfigDevicesCallback( vlc_object_t *p_this, char const *psz_name, char *psz_device = NULL; int i_ret = VLC_SUCCESS; - if( FAILED(CoInitializeEx( NULL, COINIT_MULTITTHREADED )) + if( FAILED(CoInitializeEx( NULL, COINIT_MULTITHREADED )) && FAILED(CoInitializeEx( NULL, COINIT_APARTMENTTHREADED )) ) return VLC_EGENERIC;