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

Commit 3b46c05d authored by Chen Chen's avatar Chen Chen
Browse files

SpatialAudio: fix crashes in BluetoothAudioSession

Bug: 224578221
Bug: 214615268
Test: build
Change-Id: I0fd7e0887200e39dc996b0d84de421ec13897e94
parent 5ee0d153
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -431,9 +431,11 @@ void BluetoothAudioSession::ReportLowLatencyModeAllowedChanged(bool allowed) {
    std::shared_ptr<PortStatusCallbacks> callback = observer.second;
    LOG(INFO) << __func__
              << " - allowed=" << (allowed ? " allowed" : " disallowed");
    if (callback->low_latency_mode_allowed_cb_ != nullptr) {
      callback->low_latency_mode_allowed_cb_(cookie, allowed);
    }
  }
}

bool BluetoothAudioSession::GetPresentationPosition(
    PresentationPosition& presentation_position) {