[vlc-devel] [PATCH] DMO: use COINIT_MULTITHREADED instead of COINIT_APARTMENTTHREADED

Steve Lhomme robUx4 at videolabs.io
Wed Mar 18 11:57:55 CET 2015


Fixes #14202

replaces the other #14202 fix

All the other CoInitializeEx() calls and now using multithreading, except for
this code which is called in UpdateRects()

http://git.videolan.org/?p=vlc.git;a=blob;f=modules/video_output/msw/common.c;h=77679cdca9990799e4eff858b0b96a167a776e47;hb=HEAD#l286
---
 modules/codec/dmo/dmo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/dmo/dmo.c b/modules/codec/dmo/dmo.c
index 3bd5b14..b969781 100644
--- a/modules/codec/dmo/dmo.c
+++ b/modules/codec/dmo/dmo.c
@@ -368,7 +368,7 @@ static int DecOpen( decoder_t *p_dec )
     WAVEFORMATEX *p_wf = NULL;
 
     /* Initialize OLE/COM */
-    if( FAILED(CoInitializeEx( NULL, COINIT_APARTMENTTHREADED )) )
+    if( FAILED(CoInitializeEx( NULL, COINIT_MULTITHREADED )) )
         vlc_assert_unreachable();
 
     if( LoadDMO( VLC_OBJECT(p_dec), &hmsdmo_dll, &p_dmo, &p_dec->fmt_in, false )
@@ -1397,7 +1397,7 @@ static int EncOpen( vlc_object_t *p_this )
     HINSTANCE hmsdmo_dll = NULL;
 
     /* Initialize OLE/COM */
-    if( FAILED(CoInitializeEx( NULL, COINIT_APARTMENTTHREADED )) )
+    if( FAILED(CoInitializeEx( NULL, COINIT_MULTITHREADED )) )
         vlc_assert_unreachable();
 
     if( LoadDMO( p_this, &hmsdmo_dll, &p_dmo, &p_enc->fmt_out, true )
-- 
2.3.2




More information about the vlc-devel mailing list