Commit fe5049dd authored by Francois Cartegnie's avatar Francois Cartegnie

demux: adaptative: add discontinuity flag on segments and chunks

parent 6239a046
...@@ -49,6 +49,7 @@ ISegment::ISegment(const ICanonicalUrl *parent): ...@@ -49,6 +49,7 @@ ISegment::ISegment(const ICanonicalUrl *parent):
chunksuse.Set(0); chunksuse.Set(0);
sequence = SEQUENCE_INVALID; sequence = SEQUENCE_INVALID;
templated = false; templated = false;
discontinuity = false;
} }
ISegment::~ISegment() ISegment::~ISegment()
......
...@@ -68,6 +68,7 @@ namespace adaptative ...@@ -68,6 +68,7 @@ namespace adaptative
Property<stime_t> startTime; Property<stime_t> startTime;
Property<stime_t> duration; Property<stime_t> duration;
Property<unsigned> chunksuse; Property<unsigned> chunksuse;
bool discontinuity;
static const int CLASSID_ISEGMENT = 0; static const int CLASSID_ISEGMENT = 0;
/* callbacks */ /* callbacks */
......
...@@ -31,6 +31,7 @@ SegmentChunk::SegmentChunk(ISegment *segment_, const std::string &url) : ...@@ -31,6 +31,7 @@ SegmentChunk::SegmentChunk(ISegment *segment_, const std::string &url) :
segment = segment_; segment = segment_;
segment->chunksuse.Set(segment->chunksuse.Get() + 1); segment->chunksuse.Set(segment->chunksuse.Get() + 1);
rep = NULL; rep = NULL;
discontinuity = segment_->discontinuity;
} }
SegmentChunk::~SegmentChunk() SegmentChunk::~SegmentChunk()
......
...@@ -42,6 +42,7 @@ namespace adaptative ...@@ -42,6 +42,7 @@ namespace adaptative
void setRepresentation(BaseRepresentation *); void setRepresentation(BaseRepresentation *);
virtual void onDownload(block_t **); // reimpl virtual void onDownload(block_t **); // reimpl
StreamFormat getStreamFormat() const; StreamFormat getStreamFormat() const;
bool discontinuity;
protected: protected:
ISegment *segment; ISegment *segment;
......
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