summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-06-19 09:56:09 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-06-19 18:34:05 +0200
commit95404609c0a00c9a6cf8e6c997c2d2cce412342a (patch)
tree144aa7988c2506ab0ac2582cf915dda85779e5be
parent48987fd5a15ffc86db875c68344f8825b3bf8622 (diff)
downloadgstreamer-plugins-bad-95404609c0a00c9a6cf8e6c997c2d2cce412342a.tar.gz
hlsdemux: Include the debug string in the error messages we propagate from the
source
-rw-r--r--ext/hls/gsthlsdemux.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c
index 4458c2a7c..5d39ed03c 100644
--- a/ext/hls/gsthlsdemux.c
+++ b/ext/hls/gsthlsdemux.c
@@ -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;