Merge "SpatialAudio: fix crashes in BluetoothAudioSession" am: 8673f8c28f

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2025663

Change-Id: Ieaf742d1f7b76289b4e7b3b759ecad319d441b12
This commit is contained in:
Chen Chen 2022-03-15 18:00:49 +00:00 committed by Automerger Merge Worker
commit 81edd99b87

View file

@ -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);
}
}
}