From 0d996d6d10e627cce1675ae3cf5affbd41f254f0 Mon Sep 17 00:00:00 2001 From: redPanther Date: Wed, 22 Mar 2017 11:52:20 +0100 Subject: [PATCH] clearall don't remove prio 254/255 (reserverved for system purpose) (#420) --- libsrc/hyperion/PriorityMuxer.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libsrc/hyperion/PriorityMuxer.cpp b/libsrc/hyperion/PriorityMuxer.cpp index 1aaf8b3c..611d0650 100644 --- a/libsrc/hyperion/PriorityMuxer.cpp +++ b/libsrc/hyperion/PriorityMuxer.cpp @@ -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)