dashdemux: added check that availabilityStartTime is present for live streams
authorFlorin Apostol <florin.apostol@oregan.net>
Fri, 8 Jan 2016 11:04:13 +0000 (11:04 +0000)
committerThiago Santos <thiagoss@osg.samsung.com>
Mon, 18 Jan 2016 18:12:07 +0000 (15:12 -0300)
https://bugzilla.gnome.org/show_bug.cgi?id=757602

ext/dash/gstdashdemux.c

index 58b98e3..1cc60ce 100644 (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 =