From: Sebastian Dröge Date: Wed, 21 Sep 2016 22:23:56 +0000 (-0400) Subject: nlesource: Fail prepare() if no valid source pad is found X-Git-Tag: 1.19.3~493^2~944 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a0731a0a5374a547a7085296e79bd585fed6838;p=platform%2Fupstream%2Fgstreamer.git nlesource: Fail prepare() if no valid source pad is found https://bugzilla.gnome.org/show_bug.cgi?id=771792 --- diff --git a/plugins/nle/nlesource.c b/plugins/nle/nlesource.c index 3217e0b..0fa35c8 100644 --- a/plugins/nle/nlesource.c +++ b/plugins/nle/nlesource.c @@ -488,6 +488,8 @@ nle_source_prepare (NleObject * object) if (!priv->staticpad && !(get_valid_src_pad (source, source->element, &pad))) { GST_DEBUG_OBJECT (source, "Couldn't find a valid source pad"); + gst_object_unref (parent); + return FALSE; } else { if (priv->staticpad) pad = gst_object_ref (priv->staticpad);