[vlc-commits] demux: adaptive: pass sequence to chunks

Francois Cartegnie git at videolan.org
Wed Jan 6 20:27:03 UTC 2021


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan  6 19:33:20 2021 +0100| [94e9250b5db88499ba5955835e88db7719fefac6] | committer: Francois Cartegnie

demux: adaptive: pass sequence to chunks

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=94e9250b5db88499ba5955835e88db7719fefac6
---

 modules/demux/adaptive/playlist/Segment.cpp      | 1 +
 modules/demux/adaptive/playlist/SegmentChunk.hpp | 1 +
 2 files changed, 2 insertions(+)

diff --git a/modules/demux/adaptive/playlist/Segment.cpp b/modules/demux/adaptive/playlist/Segment.cpp
index f8eac8b3ad..fcd57da8c6 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 b4c90ab4db..2c683b098a 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 **);



More information about the vlc-commits mailing list