clearall don't remove prio 254/255 (reserverved for system purpose) (#420)

This commit is contained in:
redPanther 2017-03-22 11:52:20 +01:00 committed by GitHub
parent 0aa467cceb
commit 0d996d6d10
1 changed files with 7 additions and 3 deletions

View File

@ -76,9 +76,13 @@ void PriorityMuxer::clearInput(const int priority)
void PriorityMuxer::clearAll()
{
_activeInputs.clear();
_currentPriority = LOWEST_PRIORITY;
_activeInputs[_currentPriority] = _lowestPriorityInfo;
for(auto key : _activeInputs.keys())
{
if (key < LOWEST_PRIORITY-1)
{
_activeInputs.remove(key);
}
}
}
void PriorityMuxer::setCurrentTime(const int64_t& now)