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:
Sebastian Dröge 2017-03-21 20:14:53 +02:00
parent 43d1dd3dad
commit bcbf1f67f0

View file

@ -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)