mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-23 09:41:03 +00:00
a2dp: refactor handle stream established
This commit is contained in:
parent
1239000e32
commit
edc66e936a
@ -768,14 +768,12 @@ void a2dp_config_process_avdtp_event_handler(avdtp_role_t role, uint8_t *packet,
|
|||||||
status = avdtp_subevent_streaming_connection_established_get_status(packet);
|
status = avdtp_subevent_streaming_connection_established_get_status(packet);
|
||||||
if (status != ERROR_CODE_SUCCESS){
|
if (status != ERROR_CODE_SUCCESS){
|
||||||
log_info("A2DP source streaming connection could not be established, avdtp_cid 0x%02x, status 0x%02x ---", cid, status);
|
log_info("A2DP source streaming connection could not be established, avdtp_cid 0x%02x, status 0x%02x ---", cid, status);
|
||||||
a2dp_replace_subevent_id_and_emit_for_role(role, packet, size, A2DP_SUBEVENT_STREAM_ESTABLISHED);
|
} else {
|
||||||
break;
|
log_info("A2DP source streaming connection established --- avdtp_cid 0x%02x, local seid 0x%02x, remote seid 0x%02x", cid,
|
||||||
|
avdtp_subevent_streaming_connection_established_get_local_seid(packet),
|
||||||
|
avdtp_subevent_streaming_connection_established_get_remote_seid(packet));
|
||||||
|
config_process->state = A2DP_STREAMING_OPENED;
|
||||||
}
|
}
|
||||||
|
|
||||||
log_info("A2DP source streaming connection established --- avdtp_cid 0x%02x, local seid 0x%02x, remote seid 0x%02x", cid,
|
|
||||||
avdtp_subevent_streaming_connection_established_get_local_seid(packet),
|
|
||||||
avdtp_subevent_streaming_connection_established_get_remote_seid(packet));
|
|
||||||
config_process->state = A2DP_STREAMING_OPENED;
|
|
||||||
a2dp_replace_subevent_id_and_emit_for_role(role, packet, size, A2DP_SUBEVENT_STREAM_ESTABLISHED);
|
a2dp_replace_subevent_id_and_emit_for_role(role, packet, size, A2DP_SUBEVENT_STREAM_ESTABLISHED);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user