Skip to content

Commit

Permalink
demux: adaptive: don't seek disabled streams
Browse files Browse the repository at this point in the history
As it was always seeking disabled streams,
init chunk was read on seek, queuing possible es
changes which are uncommited due to absence of sample data.
following dac320e
the fakeesout was always in restarting state then,
causing an always failing setposition which now checks
the restarting state.
  • Loading branch information
fcartegnie committed Jun 8, 2016
1 parent 9dfbee3 commit 72386a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/demux/adaptive/PlaylistManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ bool PlaylistManager::setPosition(mtime_t time)
std::vector<AbstractStream *>::iterator it;
for(it=streams.begin(); it!=streams.end(); ++it)
{
ret &= (*it)->setPosition(time, !real);
AbstractStream *st = *it;
if(!st->isDisabled())
ret &= st->setPosition(time, !real);
}
if(!ret)
break;
Expand Down

0 comments on commit 72386a2

Please sign in to comment.