From: Víctor Manuel Jáquez Leal Date: Thu, 6 Aug 2015 10:39:52 +0000 (+0200) Subject: vaapidecodebin: post an error message if fails X-Git-Tag: 1.19.3~503^2~1673 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e061c54e196da7f66fc37fdee28bfba819f2def;p=platform%2Fupstream%2Fgstreamer.git vaapidecodebin: post an error message if fails 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 --- 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; } }