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

Commit 74599879 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix suspendStream crash caused by invalid mDataMQ" am: 153a4e50

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/1906020

Change-Id: I6dbdbd47502f9e48f50d3260917a6b2f7f843323
parents 996ea265 153a4e50
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -985,6 +985,10 @@ int BluetoothAudioClientInterface::EndSession() {
}

void BluetoothAudioClientInterface::FlushAudioData() {
  if (mDataMQ == nullptr || !mDataMQ->isValid()) {
    LOG(WARNING) << __func__ << ", mDataMQ invalid";
    return;
  }
  size_t size = mDataMQ->availableToRead();
  uint8_t p_buf[size];