uridownloader: Include the debug string in the error messages we propagate from t source

This commit is contained in:
Sebastian Dröge 2014-06-19 09:57:25 +02:00
parent 95404609c0
commit e3af42ae82

View file

@ -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