Avoids a deadlock when getcaps is recursive due to the getcaps being
reflected upstream/downstream. The lock isn't actually protecting
anything here.
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);
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);