summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2016-05-17 13:40:38 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-05-20 09:36:09 +0300
commit47a358783e5a7a04733a46b14fdf561750815309 (patch)
treec79497282db3cecb7c5254bd6fb450637b2c2505
parentee7e80d615a718fd9c37be06b26cc3b7a43c2997 (diff)
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
-rw-r--r--gst/deinterlace/gstdeinterlace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c
index 65e9c7142..cd9b1e1a5 100644
--- a/gst/deinterlace/gstdeinterlace.c
+++ b/gst/deinterlace/gstdeinterlace.c
@@ -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);