summaryrefslogtreecommitdiff
path: root/gst/interlace
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2014-08-09 13:12:14 +0200
committerTim-Philipp Müller <tim@centricular.com>2014-08-10 12:04:38 +0100
commit7731f3b36ecb2d5d2756c2978e164cf5cc4f8102 (patch)
tree4b058e81a54e2d5210291d111342b7f783f63551 /gst/interlace
parent128cbf4f575ed66f8b177b02cf91740fb7e8043a (diff)
downloadgstreamer-plugins-bad-7731f3b36ecb2d5d2756c2978e164cf5cc4f8102.tar.gz
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
Diffstat (limited to 'gst/interlace')
-rw-r--r--gst/interlace/gstinterlace.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/interlace/gstinterlace.c b/gst/interlace/gstinterlace.c
index c503abf15..6cd369bf5 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);