From b338cc0d3491d3efb9563087bb3fed11c6fd22cf Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 11 Apr 2013 09:12:26 -0300 Subject: [PATCH] dashdemux: Fix another wrong assertion Also adds a couple log messages for easier debugging --- ext/dash/gstdashdemux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index a34a8afe13..7325583579 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -1003,6 +1003,8 @@ gst_dash_demux_advance_period (GstDashDemux * demux) GSList *old_period = NULL; g_static_mutex_lock (&demux->streams_lock); + GST_DEBUG_OBJECT (demux, "Advancing period from %p", demux->streams); + if (demux->streams) { g_assert (demux->streams == demux->next_periods->data); @@ -1011,6 +1013,8 @@ gst_dash_demux_advance_period (GstDashDemux * demux) demux->streams = NULL; } + GST_DEBUG_OBJECT (demux, "Next period %p", demux->next_periods); + if (demux->next_periods) { demux->streams = demux->next_periods->data; } else { @@ -1266,7 +1270,7 @@ gst_dash_demux_reset (GstDashDemux * demux, gboolean dispose) gst_uri_downloader_reset (demux->downloader); if (demux->next_periods) { - g_assert (demux->next_periods == demux->streams); + g_assert (demux->next_periods->data == demux->streams); demux->next_periods = g_slist_delete_link (demux->next_periods, demux->next_periods); }