Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 69e245e8 authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat Committed by Gerrit - the friendly Code Review server
Browse files

APM: Avoid invalidation of music stream if not required.

 -Extend checkOutputForStrategy to avoid invalidation of
  music stream only if it is active stream on one of
  the previous outputs which is not supported on the new device

Change-Id: Ibf099732f89eec35efeb6ca9cbf55a0d070f6173
parent 0aeb9483
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -382,7 +382,7 @@ protected:
        // must be called every time a condition that affects the output choice for a given strategy
        // changes: connected device, phone state, force use...
        // Must be called before updateDevicesAndOutputs()
        void checkOutputForStrategy(routing_strategy strategy);
        virtual void checkOutputForStrategy(routing_strategy strategy);

        // Same as checkOutputForStrategy() but for a all strategies in order of priority
        void checkOutputForAllStrategies();