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:
parent
d925e7fd19
commit
5a1ed14c3c
@ -2954,7 +2954,7 @@ gst_mpdparser_get_chunk_by_index (GstMpdClient * client, guint indexStream,
|
|||||||
segment->duration = duration;
|
segment->duration = duration;
|
||||||
segment->SegmentURL = NULL;
|
segment->SegmentURL = NULL;
|
||||||
|
|
||||||
if (segment->start_time > stream_period->duration) {
|
if (segment->start_time >= stream_period->duration) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user