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

Commit 35a0956f authored by Cheney Ni's avatar Cheney Ni
Browse files

A2DP: Reply AVDT_StartReq failure to upper-layer

Respond about AV started failure.

Bug: 135655859
Bug: 146826455
Test: fake an error to make sure the result is updated
Change-Id: I36289a63e928a3bd26c5f0c58a1e81e2816a959b
parent b797b5ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1916,6 +1916,7 @@ void bta_av_do_start(tBTA_AV_SCB* p_scb, tBTA_AV_DATA* p_data) {
  if (result != AVDT_SUCCESS) {
    LOG_ERROR(LOG_TAG, "%s: AVDT_StartReq failed for peer %s result:%d",
              __func__, p_scb->PeerAddress().ToString().c_str(), result);
    bta_av_start_failed(p_scb, p_data);
  }
  LOG_INFO(LOG_TAG,
           "%s: peer %s start requested: sco_occupied:%s role:0x%x "