From 28449ce7d10c9ceaa6557d2e87730e090646e081 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 5 Feb 2013 14:24:45 -0300 Subject: [PATCH] dashdemux: sprinkling some more log --- ext/dash/gstdashdemux.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 1ec14dc..27b96f6 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -903,6 +903,8 @@ gst_dash_demux_stop (GstDashDemux * demux) { GSList *iter; + GST_DEBUG_OBJECT (demux, "Stopping demux"); + if (demux->downloader) gst_uri_downloader_cancel (demux->downloader); @@ -1058,16 +1060,23 @@ gst_dash_demux_stream_loop (GstDashDemux * demux) GstDashDemuxStream *stream = iter->data; GstDataQueueItem *item; - if (stream->stream_eos) + GST_DEBUG_OBJECT (demux, "Peeking stream %d", stream->index); + + if (stream->stream_eos) { + GST_DEBUG_OBJECT (demux, "Stream %d is eos, skipping", stream->index); continue; + } if (stream->stream_end_of_period) { + GST_DEBUG_OBJECT (demux, "Stream %d is eop, skipping", stream->index); eos = FALSE; continue; } eos = FALSE; eop = FALSE; + GST_DEBUG_OBJECT (demux, "peeking at the queue for stream %d", + stream->index); if (!gst_data_queue_peek (stream->queue, &item)) { /* flushing */ goto flushing; @@ -1100,6 +1109,10 @@ gst_dash_demux_stream_loop (GstDashDemux * demux) if (selected_stream) { GstDataQueueItem *item; GstBuffer *buffer; + + GST_DEBUG_OBJECT (demux, "Selected stream %p %d", selected_stream, + selected_stream->index); + if (!gst_data_queue_pop (selected_stream->queue, &item)) goto end; @@ -1215,6 +1228,8 @@ gst_dash_demux_reset (GstDashDemux * demux, gboolean dispose) { GSList *iter; + GST_DEBUG_OBJECT (demux, "Resetting demux"); + demux->end_of_period = FALSE; demux->end_of_manifest = FALSE; -- 2.7.4