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

Commit a0b428bb authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge changes from topic "presubmit-am-b4bd5ce7b4f34be08b452106d0393ce8" into sc-v2-dev-plus-aosp

* changes:
  [automerge] Audio: SpatializerHelper: fix native audio server death handling 2p: 99c61c6b
  Audio: SpatializerHelper: fix native audio server death handling
parents 21f246ac 195aecd9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -176,6 +176,7 @@ public class SpatializerHelper {
     */
    synchronized void reset(boolean featureEnabled) {
        Log.i(TAG, "Resetting");
        releaseSpat();
        mState = STATE_UNINITIALIZED;
        mSpatLevel = Spatializer.SPATIALIZER_IMMERSIVE_LEVEL_NONE;
        mCapableSpatLevel = Spatializer.SPATIALIZER_IMMERSIVE_LEVEL_NONE;
@@ -517,10 +518,10 @@ public class SpatializerHelper {
            try {
                mSpat.registerHeadTrackingCallback(null);
                mSpat.release();
                mSpat = null;
            } catch (RemoteException e) {
                Log.e(TAG, "Can't set release spatializer cleanly", e);
            }
            mSpat = null;
        }
    }