commit | 81edd99b875ea24745c53d9ac34f2088586802f7 | [log] [tgz] |
---|---|---|
author | Chen Chen <cncn@google.com> | Tue Mar 15 18:00:49 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Mar 15 18:00:49 2022 +0000 |
tree | 089385ec1cc55ac56f4f7aff6641df7ca0289cc2 | |
parent | 4b572a4d5acbae121f9f48f4e7cdb2e6cd6c668e [diff] | |
parent | 8673f8c28f58bfa89f1c46e08ba4e7484a0191cd [diff] |
Merge "SpatialAudio: fix crashes in BluetoothAudioSession" am: 8673f8c28f Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2025663 Change-Id: Ieaf742d1f7b76289b4e7b3b759ecad319d441b12
diff --git a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp index 37ac967..cdee520 100644 --- a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp +++ b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp
@@ -431,7 +431,9 @@ 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); + } } }