Skip to content
Snippets Groups Projects
Commit e89408b6 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

demux: adaptative: enforce timeline timescale

parent 8672e257
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,12 @@ SegmentTimeline::SegmentTimeline(TimescaleAble *parent)
{
}
SegmentTimeline::SegmentTimeline(uint64_t scale)
:TimescaleAble(NULL)
{
timescale.Set(scale);
}
SegmentTimeline::~SegmentTimeline()
{
std::list<Element *>::iterator it;
......
......@@ -41,7 +41,8 @@ namespace adaptative
class Element;
public:
SegmentTimeline(TimescaleAble * = NULL);
SegmentTimeline(TimescaleAble *);
SegmentTimeline(uint64_t);
virtual ~SegmentTimeline();
void addElement(uint64_t, stime_t d, uint64_t r = 0, stime_t t = 0);
uint64_t getElementNumberByScaledPlaybackTime(stime_t) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment