[vlc-devel] [PATCH] avcodec: disable threading by default
    Rémi Denis-Courmont 
    remi at remlab.net
       
    Sat Sep 15 20:42:21 CEST 2012
    
    
  
Threading does not currently work with some codec profiles and is thus
not suited as default. Threading is also known to deadlock in certain
circumstances, such as if no data is ever received (a rather common
scenario with network or DVB reception).
Fixed avcodec version should be checked before this is re-enabled.
---
 modules/codec/avcodec/avcodec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/avcodec.c b/modules/codec/avcodec/avcodec.c
index 1adc2a2..2176b74 100644
--- a/modules/codec/avcodec/avcodec.c
+++ b/modules/codec/avcodec/avcodec.c
@@ -159,7 +159,7 @@ vlc_module_begin ()
 #endif
 #if defined(FF_THREAD_FRAME)
     add_obsolete_integer( "ffmpeg-threads" ) /* removed since 2.1.0 */
-    add_integer( "avcodec-threads", 0, THREADS_TEXT, THREADS_LONGTEXT, true );
+    add_integer( "avcodec-threads", 1, THREADS_TEXT, THREADS_LONGTEXT, true );
 #endif
 
 
-- 
1.7.10.4
    
    
More information about the vlc-devel
mailing list