diff --git a/ext/flac/gstflacenc.c b/ext/flac/gstflacenc.c index 8c94a5763e..cec2648f78 100644 --- a/ext/flac/gstflacenc.c +++ b/ext/flac/gstflacenc.c @@ -612,8 +612,6 @@ gst_flac_enc_getcaps (GstAudioEncoder * enc, GstCaps * filter) pad = GST_AUDIO_ENCODER_SINK_PAD (enc); - GST_OBJECT_LOCK (pad); - if (gst_pad_has_current_caps (pad)) { ret = gst_pad_get_current_caps (pad); } else { @@ -662,8 +660,6 @@ gst_flac_enc_getcaps (GstAudioEncoder * enc, GstCaps * filter) gst_structure_free (s); } - GST_OBJECT_UNLOCK (pad); - GST_DEBUG_OBJECT (pad, "Return caps %" GST_PTR_FORMAT, ret); caps = gst_audio_encoder_proxy_getcaps (enc, ret);