mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
dashdemux: Use gst_mpdparser_get_segment_end_time() directly instead of calculating it again
It does the exact same calculations.
This commit is contained in:
parent
43d1dd3dad
commit
bcbf1f67f0
1 changed files with 3 additions and 7 deletions
|
@ -4780,13 +4780,9 @@ gst_mpd_client_stream_seek (GstMpdClient * client, GstActiveStream * stream,
|
|||
if (segment->start > ts)
|
||||
break;
|
||||
|
||||
if (segment->repeat >= 0) {
|
||||
end_time = segment->start + (segment->repeat + 1) * segment->duration;
|
||||
} else {
|
||||
end_time =
|
||||
gst_mpdparser_get_segment_end_time (client, stream->segments,
|
||||
segment, index);
|
||||
}
|
||||
end_time =
|
||||
gst_mpdparser_get_segment_end_time (client, stream->segments,
|
||||
segment, index);
|
||||
|
||||
/* avoid downloading another fragment just for 1ns in reverse mode */
|
||||
if (forward)
|
||||
|
|
Loading…
Reference in a new issue