[vlc-commits] avcodec: adjust MT contention scope

Rémi Denis-Courmont git at videolan.org
Tue Jun 11 19:10:36 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jun 11 19:42:17 2013 +0300| [76d20512abbc6d7498bc4e49153024993978ed55] | committer: Rémi Denis-Courmont

avcodec: adjust MT contention scope

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

 modules/codec/avcodec/video.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index c8b18f0..7d7a2fc 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1023,6 +1023,7 @@ static int ffmpeg_GetFrameBuf( struct AVCodecContext *p_context,
     }
 
     p_context->draw_horiz_band = NULL;
+    post_mt( p_sys );
 
     p_ff_pic->opaque = (void*)p_pic;
     p_ff_pic->type = FF_BUFFER_TYPE_USER;
@@ -1036,7 +1037,6 @@ static int ffmpeg_GetFrameBuf( struct AVCodecContext *p_context,
     p_ff_pic->linesize[2] = p_pic->p[2].i_pitch;
     p_ff_pic->linesize[3] = 0;
 
-    post_mt( p_sys );
     return 0;
 }
 



More information about the vlc-commits mailing list