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

Commit aa39bb36 authored by Tom Huang's avatar Tom Huang Committed by Android (Google) Code Review
Browse files

Merge "Fix bta_av_do_start handle null p_data" into tm-qpr-dev

parents c3df620a c52ca586
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1824,7 +1824,9 @@ void bta_av_do_start(tBTA_AV_SCB* p_scb, tBTA_AV_DATA* p_data) {
    if (p_scb->role & BTA_AV_ROLE_SUSPEND) {
      notify_start_failed(p_scb);
    } else {
      if (p_data) {
        bta_av_set_use_latency_mode(p_scb, p_data->do_start.use_latency_mode);
      }
      bta_av_start_ok(p_scb, NULL);
    }
    return;
@@ -1859,7 +1861,7 @@ void bta_av_do_start(tBTA_AV_SCB* p_scb, tBTA_AV_DATA* p_data) {
    LOG_ERROR("%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);
  } else {
  } else if (p_data) {
    bta_av_set_use_latency_mode(p_scb, p_data->do_start.use_latency_mode);
  }
  LOG_INFO(