From bc15905c45d62e202f99d21309e887d775bc2584 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 9 Aug 2014 11:17:44 +0200 Subject: [PATCH] videoaggregator: Unref allowed caps after usage Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734522 --- gst-libs/gst/video/gstvideoaggregator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c index 09dcbb71dd..02e485cb9d 100644 --- a/gst-libs/gst/video/gstvideoaggregator.c +++ b/gst-libs/gst/video/gstvideoaggregator.c @@ -386,6 +386,8 @@ gst_videoaggregator_update_converters (GstVideoAggregator * vagg) if (!downstream_caps || gst_caps_is_empty (downstream_caps)) { GST_INFO_OBJECT (vagg, "No downstream caps found %" GST_PTR_FORMAT, downstream_caps); + if (downstream_caps) + gst_caps_unref (downstream_caps); return FALSE; }