diff --git a/modules/demux/adaptive/playlist/Segment.cpp b/modules/demux/adaptive/playlist/Segment.cpp index f8eac8b3ad067d2806779aad886a52981cffa255..fcd57da8c6074943628ff9e18e3b987bbe95b65e 100644 --- a/modules/demux/adaptive/playlist/Segment.cpp +++ b/modules/demux/adaptive/playlist/Segment.cpp @@ -88,6 +88,7 @@ SegmentChunk* ISegment::toChunk(SharedResources *res, AbstractConnectionManager SegmentChunk *chunk = createChunk(source, rep); if(chunk) { + chunk->sequence = index; chunk->discontinuity = discontinuity; if(!prepareChunk(res, chunk, rep)) { diff --git a/modules/demux/adaptive/playlist/SegmentChunk.hpp b/modules/demux/adaptive/playlist/SegmentChunk.hpp index b4c90ab4dbea4c3cae05fe6758906e2d1c57059d..2c683b098a76b8cfb5ab7acd20ea0b6eea92af23 100644 --- a/modules/demux/adaptive/playlist/SegmentChunk.hpp +++ b/modules/demux/adaptive/playlist/SegmentChunk.hpp @@ -46,6 +46,7 @@ namespace adaptive void setEncryptionSession(CommonEncryptionSession *); StreamFormat getStreamFormat() const; bool discontinuity; + uint64_t sequence; protected: bool decrypt(block_t **);