Commit 6e2fb50e authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptative: set template sequence number to startnumber

parent f7b1888a
......@@ -56,6 +56,11 @@ void MediaSegmentTemplate::mergeWith(MediaSegmentTemplate *updated, mtime_t prun
}
}
uint64_t MediaSegmentTemplate::getSequenceNumber() const
{
return startNumber.Get();
}
void MediaSegmentTemplate::setSourceUrl(const std::string &url)
{
sourceUrl = Url(Url::Component(url, this));
......
......@@ -51,6 +51,7 @@ namespace adaptative
MediaSegmentTemplate( SegmentInformation * = NULL );
virtual void setSourceUrl( const std::string &url ); /* reimpl */
void mergeWith( MediaSegmentTemplate *, mtime_t );
virtual uint64_t getSequenceNumber() const; /* reimpl */
Property<size_t> startNumber;
};
......
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