]> git.sesse.net Git - vlc/commitdiff
avcodec: adjust MT contention scope
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 11 Jun 2013 16:42:17 +0000 (19:42 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 11 Jun 2013 16:42:17 +0000 (19:42 +0300)
modules/codec/avcodec/video.c

index c8b18f0707db10dadba910547a38f99183e0c6e6..7d7a2fcfa27e5e721473dc74c75e66aa72e2d6cc 100644 (file)
@@ -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;
 }