deinterlace: Don't pointlessly hold object lock over caps operations

Avoids a deadlock when getcaps is recursive due to the getcaps being
reflected upstream/downstream. The lock isn't actually protecting
anything here.
This commit is contained in:
Jan Schmidt 2011-10-28 00:41:45 +11:00
parent f6255bb8d0
commit 3b03db5e40

View file

@ -2091,8 +2091,6 @@ gst_deinterlace_getcaps (GstPad * pad)
const GstCaps *ourcaps;
GstCaps *peercaps;
GST_OBJECT_LOCK (self);
otherpad = (pad == self->srcpad) ? self->sinkpad : self->srcpad;
ourcaps = gst_pad_get_pad_template_caps (pad);
@ -2106,8 +2104,6 @@ gst_deinterlace_getcaps (GstPad * pad)
ret = gst_caps_copy (ourcaps);
}
GST_OBJECT_UNLOCK (self);
for (len = gst_caps_get_size (ret); len > 0; len--) {
GstStructure *s = gst_caps_get_structure (ret, len - 1);