dash: mpdparser: allow periods without start time for live streams
authorThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 20 Feb 2013 15:49:25 +0000 (12:49 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 8 May 2013 21:14:41 +0000 (18:14 -0300)
Live streams can have undefined start times for the periods and
mpdparser can let that pass instead of erroring out

ext/dash/gstmpdparser.c

index 3528f65..35f5ea3 100644 (file)
@@ -2996,6 +2996,8 @@ gst_mpd_client_setup_media_presentation (GstMpdClient * client)
     } else if (idx == 0 && client->mpd_node->type == GST_MPD_FILE_TYPE_STATIC) {
       /* first period of a static MPD file, start time is 0 */
       start = 0;
+    } else if (client->mpd_node->type == GST_MPD_FILE_TYPE_DYNAMIC) {
+      /* this should be a live stream, let this pass */
     } else {
       /* this is an 'Early Available Period' */
       goto early;