Commit 93ff5fca authored by Tristan Matthews's avatar Tristan Matthews

demux: adaptative: remove dead code (cid #1313827)

Returns before ever incrementing.
parent 8ef648f3
......@@ -217,12 +217,10 @@ mtime_t PlaylistManager::getFirstDTS() const
int PlaylistManager::getGroup() const
{
std::vector<Stream *>::const_iterator it;
for(it=streams.begin(); it!=streams.end(); ++it)
{
return (*it)->getGroup();
}
return -1;
if (!streams.empty())
return streams[0]->getGroup();
else
return -1;
}
int PlaylistManager::esCount() const
......
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