]> git.sesse.net Git - vlc/commitdiff
DirectX/GDI: use COINIT_MULTITHREADED instead of COINIT_APARTMENTTHREADED
authorSteve Lhomme <robUx4@videolabs.io>
Wed, 18 Mar 2015 10:05:55 +0000 (10:05 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 19 Mar 2015 13:07:34 +0000 (14:07 +0100)
The renderer may be updated in the DMO thread which uses COINIT_MULTITHREADED

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_output/msw/common.c

index 77679cdca9990799e4eff858b0b96a167a776e47..987f260f4f4968cfd00ea125dac927120a196af1 100644 (file)
@@ -283,7 +283,7 @@ static void CommonChangeThumbnailClip(vout_display_t *vd, bool show)
     if (!GetVersionEx(&winVer) || winVer.dwMajorVersion <= 5)
         return;
 
-    if( FAILED(CoInitializeEx(NULL, COINIT_APARTMENTTHREADED)) )
+    if( FAILED(CoInitializeEx(NULL, COINIT_MULTITHREADED)) )
         vlc_assert_unreachable();
 
     void *ptr;