Skip to content
Snippets Groups Projects
Commit a59a0690 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

demux: adaptive: use current segment number when available

parent f55a71fe
No related branches found
No related tags found
No related merge requests found
......@@ -389,7 +389,9 @@ vlc_tick_t SegmentTracker::getMinAheadTime() const
if(rep->needsUpdate())
(void) rep->runLocalUpdates(resources);
uint64_t startnumber = bufferingLogic->getStartSegmentNumber(rep);
uint64_t startnumber = curNumber;
if(startnumber == std::numeric_limits<uint64_t>::max())
startnumber = bufferingLogic->getStartSegmentNumber(rep);
if(startnumber != std::numeric_limits<uint64_t>::max())
return rep->getMinAheadTime(startnumber);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment