videoaggregator: Unref allowed caps after usage

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734522
This commit is contained in:
Sebastian Rasmussen 2014-08-09 11:17:44 +02:00 committed by Tim-Philipp Müller
parent 4dde567480
commit ee09d332bd

View file

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