Commit 2f4dcee5 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptative: add dedicated reactivate stream method

We'll need such overridable method if reselecting a stream
requires global playlist action/refresh.
parent 9569a528
......@@ -152,7 +152,7 @@ AbstractStream::status PlaylistManager::demux(mtime_t nzdeadline, bool send)
if (st->isDisabled())
{
if(st->isSelected() && !st->isEOF())
st->reactivate(getPCR());
reactivateStream(st);
else
continue;
}
......@@ -271,6 +271,11 @@ bool PlaylistManager::updatePlaylist()
return true;
}
bool PlaylistManager::reactivateStream(AbstractStream *stream)
{
return stream->reactivate(getPCR());
}
#define DEMUX_INCREMENT (CLOCK_FREQ / 20)
int PlaylistManager::demux_callback(demux_t *p_demux)
{
......
......@@ -71,6 +71,7 @@ namespace adaptative
virtual int doControl(int, va_list);
virtual int doDemux(int64_t);
virtual bool reactivateStream(AbstractStream *);
bool setupPeriod();
void unsetPeriod();
/* local factories */
......
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