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
This commit is contained in:
Thiago Santos 2013-02-20 12:49:25 -03:00
parent cff4498f7c
commit b01a3729c0

View 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;