From 1e061c54e196da7f66fc37fdee28bfba819f2def Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 6 Aug 2015 12:39:52 +0200 Subject: [PATCH] vaapidecodebin: post an error message if fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit If the construction of the bin fails, post an error message in the bus. Signed-off-by: Víctor Manuel Jáquez Leal https://bugzilla.gnome.org/show_bug.cgi?id=749554 --- gst/vaapi/gstvaapidecodebin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapidecodebin.c b/gst/vaapi/gstvaapidecodebin.c index 85ab5ec..1e72278 100644 --- a/gst/vaapi/gstvaapidecodebin.c +++ b/gst/vaapi/gstvaapidecodebin.c @@ -389,7 +389,8 @@ error_element_missing: } error_link_pad: { - GST_ERROR_OBJECT (vaapidecbin, "Failed to link the child elements"); + GST_ELEMENT_ERROR (vaapidecbin, CORE, PAD, + (NULL), ("Failed to configure the vaapidecodebin.")); return FALSE; } } -- 2.7.4