From: Thibault Saunier Date: Sat, 24 Mar 2018 18:51:20 +0000 (-0300) Subject: encodebin: Inform about missing elements in the "text" error field X-Git-Tag: 1.16.2~729 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dbc89373ea65f33f208e46cd40738cafba17ee97;p=platform%2Fupstream%2Fgst-plugins-base.git encodebin: Inform about missing elements in the "text" error field Instead of the debug field, that information should be directly exposed to end users. https://bugzilla.gnome.org/show_bug.cgi?id=794663 --- diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c index b1e1dd3ad..f7c4474b0 100644 --- a/gst/encoding/gstencodebin.c +++ b/gst/encoding/gstencodebin.c @@ -1164,8 +1164,8 @@ _post_missing_plugin_message (GstEncodeBin * ebin, GstEncodingProfile * prof) /* missing plugin support */ gst_element_post_message (GST_ELEMENT_CAST (ebin), gst_missing_encoder_message_new (GST_ELEMENT_CAST (ebin), format)); - GST_ELEMENT_ERROR (ebin, CORE, MISSING_PLUGIN, (NULL), - ("Couldn't create encoder for format %" GST_PTR_FORMAT, format)); + GST_ELEMENT_ERROR (ebin, CORE, MISSING_PLUGIN, + ("Couldn't create encoder for format %" GST_PTR_FORMAT, format), (NULL)); gst_caps_unref (format); } @@ -1959,8 +1959,8 @@ no_muxer: /* missing plugin support */ gst_element_post_message (GST_ELEMENT_CAST (ebin), gst_missing_encoder_message_new (GST_ELEMENT_CAST (ebin), format)); - GST_ELEMENT_ERROR (ebin, CORE, MISSING_PLUGIN, (NULL), - ("No available muxer for format %" GST_PTR_FORMAT, format)); + GST_ELEMENT_ERROR (ebin, CORE, MISSING_PLUGIN, + ("No available muxer for format %" GST_PTR_FORMAT, format), (NULL)); if (format) gst_caps_unref (format); return FALSE;