diff options
author | Chen Chen <cncn@google.com> | 2022-03-15 18:28:11 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-03-15 18:28:11 +0000 |
commit | a16a0ece1a891eb6db9d1caab704b9b597fd6254 (patch) | |
tree | 467a59a99ad38ecda1ee0bf037b51ee5b45f0b07 /bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp | |
parent | 650468afccdb0f42c80766fe9ab2bff8f8c9d11a (diff) | |
parent | 81edd99b875ea24745c53d9ac34f2088586802f7 (diff) |
Merge "SpatialAudio: fix crashes in BluetoothAudioSession" am: 8673f8c28f am: 81edd99b87
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2025663
Change-Id: I25913e948f137e057899e30b5e665e0673e3207b
Diffstat (limited to 'bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp')
-rw-r--r-- | bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp index 37ac9678e8..cdee520b11 100644 --- a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp +++ b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp @@ -431,7 +431,9 @@ void BluetoothAudioSession::ReportLowLatencyModeAllowedChanged(bool allowed) { std::shared_ptr<PortStatusCallbacks> callback = observer.second; LOG(INFO) << __func__ << " - allowed=" << (allowed ? " allowed" : " disallowed"); - callback->low_latency_mode_allowed_cb_(cookie, allowed); + if (callback->low_latency_mode_allowed_cb_ != nullptr) { + callback->low_latency_mode_allowed_cb_(cookie, allowed); + } } } |