mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-20 13:28:21 +00:00
deinterlace: fix caps leak
The caps returned by gst_pad_get_current_caps() was never unreffed when not early returning. Fix a leak with the elements/deinterlace test. https://bugzilla.gnome.org/show_bug.cgi?id=766558
This commit is contained in:
parent
ee7e80d615
commit
47a358783e
|
@ -2532,6 +2532,7 @@ gst_deinterlace_setcaps (GstDeinterlace * self, GstPad * pad, GstCaps * caps)
|
|||
return TRUE;
|
||||
}
|
||||
gst_deinterlace_reset_history (self, FALSE);
|
||||
gst_caps_unref (current_caps);
|
||||
}
|
||||
peercaps = gst_pad_peer_query_caps (self->srcpad, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue