dashdemux: added check that availabilityStartTime is present for live streams

https://bugzilla.gnome.org/show_bug.cgi?id=757602
This commit is contained in:
Florin Apostol 2016-01-08 11:04:13 +00:00 committed by Thiago Santos
parent 2918dff2e0
commit 88f509a710

View file

@ -684,6 +684,11 @@ gst_dash_demux_setup_streams (GstAdaptiveDemux * demux)
period_idx = 0;
if (gst_mpd_client_is_live (dashdemux->client)) {
GDateTime *g_now;
if (dashdemux->client->mpd_node->availabilityStartTime == NULL) {
ret = FALSE;
GST_ERROR_OBJECT (demux, "MPD does not have availabilityStartTime");
goto done;
}
if (dashdemux->clock_drift == NULL) {
gchar **urls;
urls =