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