Commit 67dda11f authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: adaptive: fix regression with seek

happens with mixed valid and invalid streams
parent 46bd4c62
...@@ -310,7 +310,7 @@ bool PlaylistManager::setPosition(mtime_t time) ...@@ -310,7 +310,7 @@ bool PlaylistManager::setPosition(mtime_t time)
for(it=streams.begin(); it!=streams.end(); ++it) for(it=streams.begin(); it!=streams.end(); ++it)
{ {
AbstractStream *st = *it; AbstractStream *st = *it;
if(!st->isDisabled()) if(!st->isDisabled() && !st->isDead())
ret &= st->setPosition(time, !real); ret &= st->setPosition(time, !real);
} }
if(!ret) if(!ret)
......
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