From 531b0226dbfca92693880d378060799282dea75a Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 9 Aug 2014 13:12:14 +0200 Subject: [PATCH] interlace: fix caps refcounting tcaps was unrefed when it shouldn't have been unrefed in some cases. https://bugzilla.gnome.org/show_bug.cgi?id=734531 --- gst/interlace/gstinterlace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/interlace/gstinterlace.c b/gst/interlace/gstinterlace.c index c503abf..6cd369b 100644 --- a/gst/interlace/gstinterlace.c +++ b/gst/interlace/gstinterlace.c @@ -523,6 +523,7 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter) if (othercaps) { icaps = gst_caps_intersect (othercaps, tcaps); gst_caps_unref (othercaps); + gst_caps_unref (tcaps); } else { icaps = tcaps; } @@ -542,8 +543,6 @@ gst_interlace_getcaps (GstPad * pad, GstInterlace * interlace, GstCaps * filter) gst_caps_set_simple (icaps, "interlace-mode", G_TYPE_STRING, pad == interlace->srcpad ? mode : "progressive", NULL); - gst_caps_unref (tcaps); - if (clean_filter) gst_caps_unref (clean_filter); -- 2.7.4