dashdemux: Fix another wrong assertion
authorThiago Santos <thiago.sousa.santos@collabora.com>
Thu, 11 Apr 2013 12:12:26 +0000 (09:12 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 8 May 2013 21:14:46 +0000 (18:14 -0300)
Also adds a couple log messages for easier debugging

ext/dash/gstdashdemux.c

index a34a8af..7325583 100644 (file)
@@ -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);
   }