Commit cac5bd83 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: hls: fix inconsistent segment number matching

parent a6b0ddea
......@@ -164,7 +164,7 @@ uint64_t Representation::translateSegmentNumber(uint64_t num, const SegmentInfor
const HLSSegment *hlsSeg = dynamic_cast<HLSSegment *>(*it);
if(hlsSeg)
{
if (hlsSeg->getUTCTime() <= utcTime)
if (hlsSeg->getUTCTime() <= utcTime || it == list.begin())
num = hlsSeg->getSequenceNumber();
else
return num;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment