Skip to content
Snippets Groups Projects
Commit 95404609 authored by Sebastian Dröge's avatar Sebastian Dröge :tea:
Browse files

hlsdemux: Include the debug string in the error messages we propagate from the

source
parent 48987fd5
No related branches found
No related tags found
No related merge requests found
......@@ -356,12 +356,20 @@ gst_hls_demux_handle_message (GstBin * bin, GstMessage * msg)
case GST_MESSAGE_ERROR:{
GError *err = NULL;
gchar *debug = NULL;
gchar *new_error = NULL;
gst_message_parse_error (msg, &err, &debug);
GST_WARNING_OBJECT (demux, "Source posted error: %d:%d %s (%s)",
err->domain, err->code, err->message, debug);
if (debug)
new_error = g_strdup_printf ("%s: %s\n", err->message, debug);
if (new_error) {
g_free (err->message);
err->message = new_error;
}
/* error, but ask to retry */
g_mutex_lock (&demux->fragment_download_lock);
demux->last_ret = GST_FLOW_CUSTOM_ERROR;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment