Commit 9a3bd71a authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptive: rename fakeesout->drain

parent 858b4b60
...@@ -287,7 +287,7 @@ void PlaylistManager::drain() ...@@ -287,7 +287,7 @@ void PlaylistManager::drain()
if (st->isDisabled()) if (st->isDisabled())
continue; continue;
b_drained &= st->drain(); b_drained &= st->decodersDrained();
} }
if(b_drained) if(b_drained)
......
...@@ -266,9 +266,9 @@ bool AbstractStream::canActivate() const ...@@ -266,9 +266,9 @@ bool AbstractStream::canActivate() const
return !dead; return !dead;
} }
bool AbstractStream::drain() bool AbstractStream::decodersDrained()
{ {
return fakeesout->drain(); return fakeesout->decodersDrained();
} }
AbstractStream::buffering_status AbstractStream::getLastBufferStatus() const AbstractStream::buffering_status AbstractStream::getLastBufferStatus() const
......
...@@ -86,7 +86,7 @@ namespace adaptive ...@@ -86,7 +86,7 @@ namespace adaptive
buffering_status getLastBufferStatus() const; buffering_status getLastBufferStatus() const;
mtime_t getDemuxedAmount() const; mtime_t getDemuxedAmount() const;
status dequeue(mtime_t, mtime_t *); status dequeue(mtime_t, mtime_t *);
bool drain(); bool decodersDrained();
virtual bool setPosition(mtime_t, bool); virtual bool setPosition(mtime_t, bool);
mtime_t getPlaybackTime() const; mtime_t getPlaybackTime() const;
void runUpdates(); void runUpdates();
......
...@@ -247,7 +247,7 @@ bool FakeESOut::hasSelectedEs() const ...@@ -247,7 +247,7 @@ bool FakeESOut::hasSelectedEs() const
return b_selected; return b_selected;
} }
bool FakeESOut::drain() bool FakeESOut::decodersDrained()
{ {
bool b_drained = true; bool b_drained = true;
std::list<FakeESOutID *>::const_iterator it; std::list<FakeESOutID *>::const_iterator it;
......
...@@ -44,7 +44,7 @@ namespace adaptive ...@@ -44,7 +44,7 @@ namespace adaptive
void setExpectedTimestampOffset(mtime_t); void setExpectedTimestampOffset(mtime_t);
size_t esCount() const; size_t esCount() const;
bool hasSelectedEs() const; bool hasSelectedEs() const;
bool drain(); bool decodersDrained();
bool restarting() const; bool restarting() const;
void setExtraInfoProvider( ExtraFMTInfoInterface * ); void setExtraInfoProvider( ExtraFMTInfoInterface * );
void checkTimestampsStart(mtime_t); void checkTimestampsStart(mtime_t);
......
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