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

demux: adaptive: add buffer length

parent 7961e490
......@@ -314,6 +314,11 @@ void CommandsQueue::setDrop( bool b )
vlc_mutex_unlock(&lock);
}
mtime_t CommandsQueue::getDemuxedAmount() const
{
return bufferinglevel - getFirstDTS();
}
mtime_t CommandsQueue::getBufferingLevel() const
{
mtime_t i_buffer;
......
......@@ -145,6 +145,7 @@ namespace adaptive
void Commit();
bool isEmpty() const;
void setDrop( bool );
mtime_t getDemuxedAmount() const;
mtime_t getBufferingLevel() const;
mtime_t getFirstDTS() const;
......
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