mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
dashdemux: Fix detection for the end of segment.
The segment start time is calculated as the offset into the current segment. The old condition to detect the end of period (i.e. segment start time > period start + period duration) failed when the period start was not 0 since the segment start time does not take the period start time into account. Fix this detection by only comparing the segment start to the period duration. https://bugzilla.gnome.org/show_bug.cgi?id=733369
This commit is contained in:
parent
fb760a563c
commit
6dca8f5cce
1 changed files with 1 additions and 1 deletions
|
@ -2955,7 +2955,7 @@ gst_mpdparser_get_chunk_by_index (GstMpdClient * client, guint indexStream,
|
|||
segment->duration = duration;
|
||||
segment->SegmentURL = NULL;
|
||||
|
||||
if (segment->start_time > stream_period->start + stream_period->duration) {
|
||||
if (segment->start_time > stream_period->duration) {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue