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

Commit 6175fe53 authored by weichinweng's avatar weichinweng Committed by android-build-merger
Browse files

Merge "Stop A2DP stream when shutting down A2DP source." am: e776017d am: 25c1a37c

am: 067375e0

Change-Id: I511faca95b09110c76b7b2003b09458c39698ce1
parents d709461c 067375e0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -439,7 +439,8 @@ static void btif_a2dp_source_end_session_delayed(
    BluetoothMetricsLogger::GetInstance()->LogBluetoothSessionEnd(
        bluetooth::common::DISCONNECT_REASON_UNKNOWN, 0);
  }
  if (btif_a2dp_source_cb.State() == BtifA2dpSource::kStateRunning) {
  if ((btif_a2dp_source_cb.State() == BtifA2dpSource::kStateRunning) ||
      (btif_a2dp_source_cb.State() == BtifA2dpSource::kStateShuttingDown)) {
    btif_av_stream_stop(peer_address);
  } else {
    LOG_ERROR(LOG_TAG, "%s: A2DP Source media task is not running", __func__);