From b01a3729c0fceddb5c379ec8db4361050e678eec Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 20 Feb 2013 12:49:25 -0300 Subject: [PATCH] dash: mpdparser: allow periods without start time for live streams Live streams can have undefined start times for the periods and mpdparser can let that pass instead of erroring out --- ext/dash/gstmpdparser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index 3528f65557..35f5ea38ec 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -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;