dashdemux: fetch wrong segment at the end of Period

Fix check for end of Period time to avoid trying
to fetch a segment that doesn't exist

https://bugzilla.gnome.org/show_bug.cgi?id=746038
This commit is contained in:
xixi 2015-03-11 23:03:24 +08:00 committed by Thiago Santos
parent d925e7fd19
commit 5a1ed14c3c

View file

@ -2954,7 +2954,7 @@ gst_mpdparser_get_chunk_by_index (GstMpdClient * client, guint indexStream,
segment->duration = duration;
segment->SegmentURL = NULL;
if (segment->start_time > stream_period->duration) {
if (segment->start_time >= stream_period->duration) {
return FALSE;
}
}