omxvideoenc: Fix deadlock when using the EOS hack
authorJonas Larsson <Jonas.Larsson@palm.com>
Wed, 14 Dec 2011 09:07:29 +0000 (10:07 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 14 Dec 2011 09:07:29 +0000 (10:07 +0100)
omx/gstomxvideoenc.c

index 73e20e9..1d6db82 100644 (file)
@@ -904,6 +904,7 @@ gst_omx_video_enc_loop (GstOMXVideoEnc * self)
 
   } else {
     g_assert ((klass->hacks & GST_OMX_HACK_NO_EMPTY_EOS_BUFFER));
+    GST_BASE_VIDEO_CODEC_STREAM_LOCK (self);
     flow_ret = GST_FLOW_UNEXPECTED;
   }