mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
uridownloader: Include the debug string in the error messages we propagate from t source
This commit is contained in:
parent
95404609c0
commit
e3af42ae82
1 changed files with 8 additions and 0 deletions
|
@ -195,6 +195,7 @@ gst_uri_downloader_bus_handler (GstBus * bus,
|
|||
if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_ERROR) {
|
||||
GError *err = NULL;
|
||||
gchar *dbg_info = NULL;
|
||||
gchar *new_error = NULL;
|
||||
|
||||
gst_message_parse_error (message, &err, &dbg_info);
|
||||
GST_WARNING_OBJECT (downloader,
|
||||
|
@ -202,6 +203,13 @@ gst_uri_downloader_bus_handler (GstBus * bus,
|
|||
err->message, GST_OBJECT_NAME (message->src));
|
||||
GST_DEBUG ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none");
|
||||
|
||||
if (dbg_info)
|
||||
new_error = g_strdup_printf ("%s: %s\n", err->message, dbg_info);
|
||||
if (new_error) {
|
||||
g_free (err->message);
|
||||
err->message = new_error;
|
||||
}
|
||||
|
||||
if (!downloader->priv->err)
|
||||
downloader->priv->err = err;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue