Commit 3b2ae23d authored by François Cartegnie's avatar François Cartegnie 🤞

demux: smooth: trigger full playlist update when reaching end of timeline

parent 1fe7c233
......@@ -93,7 +93,25 @@ Manifest * SmoothManager::fetchManifest()
bool SmoothManager::updatePlaylist()
{
return updatePlaylist(false);
bool b_playlist_empty = false;
/* Trigger full playlist update in case we cannot get next
segment from atom */
std::vector<AbstractStream *>::const_iterator it;
for(it=streams.begin(); it!=streams.end(); ++it)
{
const AbstractStream *st = *it;
const mtime_t m = st->getMinAheadTime();
if(st->isDisabled() || !st->isSelected())
{
continue;
}
else if(m < 1)
{
b_playlist_empty = true;
break;
}
}
return updatePlaylist(b_playlist_empty);
}
void SmoothManager::scheduleNextUpdate()
......
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