omxvideodec: add missing stream unlock in error path
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Mon, 2 Jun 2014 13:34:09 +0000 (15:34 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 2 Jun 2014 17:28:51 +0000 (19:28 +0200)
omx/gstomxvideodec.c

index 44cb759458d7e9a56943d2e3b86530f254139080..207ba8874c2a0693092f962f5bb79ef2c5f80cdc 100644 (file)
@@ -1139,6 +1139,7 @@ gst_omx_video_dec_reconfigure_output_port (GstOMXVideoDec * self)
     gst_video_codec_state_unref (state);
     GST_ERROR_OBJECT (self, "Failed to negotiate");
     err = OMX_ErrorUndefined;
+    GST_VIDEO_DECODER_STREAM_UNLOCK (self);
     goto done;
   }