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…
x
Reference in New Issue
Block a user