summaryrefslogtreecommitdiff
path: root/gst/hls
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@collabora.com>2012-04-05 11:51:40 -0400
committerThibault Saunier <thibault.saunier@collabora.com>2012-04-05 11:51:40 -0400
commit70056a37c47d085c917f94574b76afb8c5f707dc (patch)
treead237b0c6b58d3deedb40bd6d690f309681ad68f /gst/hls
parentf9b0d59e84211fb822ca61634c57fe128e4dfeb0 (diff)
downloadgstreamer-plugins-bad-70056a37c47d085c917f94574b76afb8c5f707dc.tar.gz
hls: Some more debugging
Diffstat (limited to 'gst/hls')
-rw-r--r--gst/hls/gsturidownloader.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/gst/hls/gsturidownloader.c b/gst/hls/gsturidownloader.c
index 74604c220..e208efe15 100644
--- a/gst/hls/gsturidownloader.c
+++ b/gst/hls/gsturidownloader.c
@@ -184,9 +184,17 @@ gst_uri_downloader_bus_handler (GstBus * bus,
if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_ERROR ||
GST_MESSAGE_TYPE (message) == GST_MESSAGE_WARNING) {
+ GError *err = NULL;
+ gchar *dbg_info = NULL;
+
+ gst_message_parse_error (message, &err, &dbg_info);
GST_WARNING_OBJECT (downloader,
- "Received error in bus from the source element, "
- "the download will be cancelled");
+ "Received error: %s from %s, the download will be cancelled",
+ GST_OBJECT_NAME (message->src), err->message);
+ GST_DEBUG ("Debugging info: %s\n", (dbg_info) ? dbg_info : "none");
+ g_error_free (err);
+ g_free (dbg_info);
+
/* remove the sync handler to avoid duplicated messages */
gst_bus_set_sync_handler (downloader->priv->bus, NULL, NULL);
gst_uri_downloader_cancel (downloader);
@@ -213,9 +221,8 @@ gst_uri_downloader_chain (GstPad * pad, GstBuffer * buf)
goto done;
}
- GST_LOG_OBJECT (downloader,
- "The uri fetcher received a new buffer of size %u",
- GST_BUFFER_SIZE (buf));
+ GST_LOG_OBJECT (downloader, "The uri fetcher received a new buffer "
+ "of size %u", GST_BUFFER_SIZE (buf));
if (!gst_fragment_add_buffer (downloader->priv->download, buf))
GST_WARNING_OBJECT (downloader, "Could not add buffer to fragment");
GST_OBJECT_UNLOCK (downloader);