diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c index d4bd6bd375..a1a8bceae6 100644 --- a/ext/mimic/gstmimdec.c +++ b/ext/mimic/gstmimdec.c @@ -336,11 +336,9 @@ gst_mimdec_src_getcaps (GstPad *pad) { GstCaps *caps; - GST_LOCK (pad); if (!(caps = GST_PAD_CAPS (pad))) caps = (GstCaps *) gst_pad_get_pad_template_caps (pad); caps = gst_caps_ref (caps); - GST_UNLOCK (pad); return caps; }