mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
dashdemux: Fix another wrong assertion
Also adds a couple log messages for easier debugging
This commit is contained in:
parent
3472efda75
commit
b338cc0d34
1 changed files with 5 additions and 1 deletions
|
@ -1003,6 +1003,8 @@ gst_dash_demux_advance_period (GstDashDemux * demux)
|
||||||
GSList *old_period = NULL;
|
GSList *old_period = NULL;
|
||||||
g_static_mutex_lock (&demux->streams_lock);
|
g_static_mutex_lock (&demux->streams_lock);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (demux, "Advancing period from %p", demux->streams);
|
||||||
|
|
||||||
if (demux->streams) {
|
if (demux->streams) {
|
||||||
g_assert (demux->streams == demux->next_periods->data);
|
g_assert (demux->streams == demux->next_periods->data);
|
||||||
|
|
||||||
|
@ -1011,6 +1013,8 @@ gst_dash_demux_advance_period (GstDashDemux * demux)
|
||||||
demux->streams = NULL;
|
demux->streams = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (demux, "Next period %p", demux->next_periods);
|
||||||
|
|
||||||
if (demux->next_periods) {
|
if (demux->next_periods) {
|
||||||
demux->streams = demux->next_periods->data;
|
demux->streams = demux->next_periods->data;
|
||||||
} else {
|
} else {
|
||||||
|
@ -1266,7 +1270,7 @@ gst_dash_demux_reset (GstDashDemux * demux, gboolean dispose)
|
||||||
gst_uri_downloader_reset (demux->downloader);
|
gst_uri_downloader_reset (demux->downloader);
|
||||||
|
|
||||||
if (demux->next_periods) {
|
if (demux->next_periods) {
|
||||||
g_assert (demux->next_periods == demux->streams);
|
g_assert (demux->next_periods->data == demux->streams);
|
||||||
demux->next_periods =
|
demux->next_periods =
|
||||||
g_slist_delete_link (demux->next_periods, demux->next_periods);
|
g_slist_delete_link (demux->next_periods, demux->next_periods);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue