Browse Source

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

pull/53/head
Francois Cartegnie 10 years ago
parent
commit
3b2ae23d89
  1. 20
      modules/demux/smooth/SmoothManager.cpp

20
modules/demux/smooth/SmoothManager.cpp

@ -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()

Loading…
Cancel
Save