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

Commit 125b0cf8 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 am: 74599879

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

Change-Id: Id9ec95692c31613c605ca2351eab8ae77311b309
parents 494ed08b 74599879
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];