avdtp: rename variable

This commit is contained in:
Milanka Ringwald 2020-10-01 09:54:50 +02:00
parent 7dbc6cb88b
commit c38fa3efb1
5 changed files with 6 additions and 6 deletions

View File

@ -523,7 +523,7 @@ typedef struct avdtp_stream_endpoint {
uint8_t media_connect;
uint8_t start_stream;
uint8_t stop_stream;
uint8_t send_stream;
uint8_t request_can_send_now;
uint8_t abort_stream;
uint8_t suspend_stream;
uint16_t sequence_number;

View File

@ -442,8 +442,8 @@ void avdtp_initiator_stream_config_subsm_run(avdtp_connection_t *connection) {
}
}
if (stream_endpoint->send_stream){
stream_endpoint->send_stream = 0;
if (stream_endpoint->request_can_send_now){
stream_endpoint->request_can_send_now = 0;
if (stream_endpoint->state == AVDTP_STREAM_ENDPOINT_STREAMING){
stream_endpoint->state = AVDTP_STREAM_ENDPOINT_STREAMING;
avdtp_streaming_emit_can_send_media_packet_now(stream_endpoint,

View File

@ -243,7 +243,7 @@ void avdtp_source_stream_endpoint_request_can_send_now(uint16_t avdtp_cid, uint8
log_error("AVDTP source: no stream_endpoint with seid %d", local_seid);
return;
}
stream_endpoint->send_stream = 1;
stream_endpoint->request_can_send_now = true;
avdtp_request_can_send_now_initiator(stream_endpoint->connection, stream_endpoint->l2cap_media_cid);
}

View File

@ -127,7 +127,7 @@ void avdtp_reset_stream_endpoint(avdtp_stream_endpoint_t * stream_endpoint){
stream_endpoint->media_connect = 0;
stream_endpoint->start_stream = 0;
stream_endpoint->stop_stream = 0;
stream_endpoint->send_stream = 0;
stream_endpoint->request_can_send_now = 0;
stream_endpoint->abort_stream = 0;
stream_endpoint->suspend_stream = 0;
stream_endpoint->sequence_number = 0;

View File

@ -271,7 +271,7 @@ static void avdtp_audio_timeout_handler(btstack_timer_source_t * timer){
printf("no stream_endpoint for seid %d\n", context->local_seid);
return;
}
stream_endpoint->send_stream = 1;
stream_endpoint->request_can_send_now = 1;
if (stream_endpoint->connection){
avdtp_request_can_send_now_initiator(stream_endpoint->connection, stream_endpoint->l2cap_media_cid);
}