Loading system/bta/av/bta_av_act.cc +2 −0 Original line number Diff line number Diff line Loading @@ -1040,6 +1040,8 @@ void bta_av_rc_msg(tBTA_AV_CB* p_cb, tBTA_AV_DATA* p_data) { av.remote_rsp.key_state = p_data->rc_msg.msg.pass.state; av.remote_rsp.rsp_code = p_data->rc_msg.msg.hdr.ctype; av.remote_rsp.label = p_data->rc_msg.label; av.remote_rsp.len = p_data->rc_msg.msg.pass.pass_len; av.remote_rsp.p_data = NULL; /* If this response is for vendor unique command */ if ((p_data->rc_msg.msg.pass.op_id == AVRC_ID_VENDOR) && Loading system/btif/src/btif_rc.cc +1 −1 Original line number Diff line number Diff line Loading @@ -1070,7 +1070,7 @@ void handle_rc_vendorunique_rsp(tBTA_AV_REMOTE_RSP* p_remote_rsp) { key_state = 0; } if (p_remote_rsp->len > 0) { if (p_remote_rsp->len > 0 && p_remote_rsp->p_data != NULL) { if (p_remote_rsp->len >= AVRC_PASS_THRU_GROUP_LEN) vendor_id = p_remote_rsp->p_data[AVRC_PASS_THRU_GROUP_LEN - 1]; osi_free_and_reset((void**)&p_remote_rsp->p_data); Loading Loading
system/bta/av/bta_av_act.cc +2 −0 Original line number Diff line number Diff line Loading @@ -1040,6 +1040,8 @@ void bta_av_rc_msg(tBTA_AV_CB* p_cb, tBTA_AV_DATA* p_data) { av.remote_rsp.key_state = p_data->rc_msg.msg.pass.state; av.remote_rsp.rsp_code = p_data->rc_msg.msg.hdr.ctype; av.remote_rsp.label = p_data->rc_msg.label; av.remote_rsp.len = p_data->rc_msg.msg.pass.pass_len; av.remote_rsp.p_data = NULL; /* If this response is for vendor unique command */ if ((p_data->rc_msg.msg.pass.op_id == AVRC_ID_VENDOR) && Loading
system/btif/src/btif_rc.cc +1 −1 Original line number Diff line number Diff line Loading @@ -1070,7 +1070,7 @@ void handle_rc_vendorunique_rsp(tBTA_AV_REMOTE_RSP* p_remote_rsp) { key_state = 0; } if (p_remote_rsp->len > 0) { if (p_remote_rsp->len > 0 && p_remote_rsp->p_data != NULL) { if (p_remote_rsp->len >= AVRC_PASS_THRU_GROUP_LEN) vendor_id = p_remote_rsp->p_data[AVRC_PASS_THRU_GROUP_LEN - 1]; osi_free_and_reset((void**)&p_remote_rsp->p_data); Loading