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);
demux->streams = NULL;
}
+ GST_DEBUG_OBJECT (demux, "Next period %p", demux->next_periods);
+
if (demux->next_periods) {
demux->streams = demux->next_periods->data;
} else {
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);
}