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:
Guillaume Desmottes 2016-05-17 13:40:38 +03:00 committed by Sebastian Dröge
parent ee7e80d615
commit 47a358783e

View file

@ -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);