bool SegmentTracker::segmentsListReady() const { BaseRepresentation *rep = curRepresentation; if(!rep) rep = logic->getNextRepresentation(adaptationSet, NULL); if(rep && rep->getPlaylist()->isLive()) return rep->getMinAheadTime(curNumber) > 0; return true; }
mtime_t SegmentTracker::getMinAheadTime() const { BaseRepresentation *rep = curRepresentation; if(!rep) rep = logic->getNextRepresentation(adaptationSet, NULL); if(rep) return rep->getMinAheadTime(curNumber); return 0; }