[vlc-commits] DirectX/GDI: use COINIT_MULTITHREADED instead of COINIT_APARTMENTTHREADED

Steve Lhomme git at videolan.org
Thu Mar 19 14:08:36 CET 2015


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Mar 18 10:05:55 2015 +0000| [a27dd41ea5d2a31bc1fda849e6d80369b1303912] | committer: Jean-Baptiste Kempf

DirectX/GDI: use COINIT_MULTITHREADED instead of COINIT_APARTMENTTHREADED

The renderer may be updated in the DMO thread which uses COINIT_MULTITHREADED

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a27dd41ea5d2a31bc1fda849e6d80369b1303912
---

 modules/video_output/msw/common.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/msw/common.c b/modules/video_output/msw/common.c
index 77679cd..987f260 100644
--- a/modules/video_output/msw/common.c
+++ b/modules/video_output/msw/common.c
@@ -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;



More information about the vlc-commits mailing list