diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-09-21 18:23:56 -0400 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-09-21 18:24:34 -0400 |
commit | 5a0731a0a5374a547a7085296e79bd585fed6838 (patch) | |
tree | 9bc3ab31aa47145ad127c5e00e01896bedc693b0 | |
parent | 244266a94ec9c341616bbfaa74dcb32f84dd6dc9 (diff) |
nlesource: Fail prepare() if no valid source pad is found
https://bugzilla.gnome.org/show_bug.cgi?id=771792
-rw-r--r-- | plugins/nle/nlesource.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/nle/nlesource.c b/plugins/nle/nlesource.c index 3217e0b7..0fa35c8c 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); |