From cf6f14d03c603fd4a620d3625051841ceb96bb25 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 20 Oct 2011 14:30:38 +0200 Subject: [PATCH] omxvideodec: Move locking at the correct place --- omx/gstomxvideodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index 23a2870..edf239d 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -990,6 +990,7 @@ gst_omx_video_dec_set_format (GstBaseVideoDecoder * decoder, gst_omx_video_dec_stop (GST_BASE_VIDEO_DECODER (self)); gst_omx_video_dec_close (self); + GST_BASE_VIDEO_CODEC_STREAM_LOCK (self); /* FIXME: Workaround for * https://bugzilla.gnome.org/show_bug.cgi?id=654529 */ @@ -998,7 +999,6 @@ gst_omx_video_dec_set_format (GstBaseVideoDecoder * decoder, g_list_free (GST_BASE_VIDEO_CODEC (self)->frames); GST_BASE_VIDEO_CODEC (self)->frames = NULL; - GST_BASE_VIDEO_CODEC_STREAM_LOCK (self); if (!gst_omx_video_dec_open (self)) return FALSE; needs_disable = FALSE; -- 2.7.4