Commit fe5049dd authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptative: add discontinuity flag on segments and chunks

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