vaapidecodebin: post an error message if fails
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 6 Aug 2015 10:39:52 +0000 (12:39 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Thu, 13 Aug 2015 15:34:42 +0000 (17:34 +0200)
If the construction of the bin fails, post an error message in the bus.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
https://bugzilla.gnome.org/show_bug.cgi?id=749554

gst/vaapi/gstvaapidecodebin.c

index 85ab5ec..1e72278 100644 (file)
@@ -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;
   }
 }