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

Commit dbe6aeec authored by Henri Chataing's avatar Henri Chataing
Browse files

btif_av: Missing call to ack_stream_started on failed reconfiguration

Bug: 331817295
Test: m com.android.btservices
Flag: EXEMPT, minor bug fix
Change-Id: I7a4833ceebcef191f4bb6f81dfb5c7a77544ac43
parent 58e44d72
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2570,8 +2570,12 @@ bool BtifAvStateMachine::StateOpened::ProcessEvent(uint32_t event,
          log::error("Peer {} : cannot proceed to do AvStart",
                     peer_.PeerAddress());
          peer_.ClearFlags(BtifAvPeer::kFlagPendingStart);
          if (bluetooth::audio::a2dp::is_hal_enabled()) {
            bluetooth::audio::a2dp::ack_stream_started(A2DP_CTRL_ACK_FAILURE);
          } else {
            btif_a2dp_command_ack(A2DP_CTRL_ACK_FAILURE);
          }
        }
        if (peer_.IsSink()) {
          btif_av_source_disconnect(peer_.PeerAddress());
        } else if (peer_.IsSource()) {