mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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:
parent
f6255bb8d0
commit
3b03db5e40
1 changed files with 0 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue