avdtp_initiator.c (054be04844a991158c69d204abd86f5f24d6996c) avdtp_initiator.c (f751daa3e83b8c78f824b3d6cfa8412a4f191539)
1/*
2 * Copyright (C) 2016 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 417 unchanged lines hidden (view full) ---

426 return;
427 }
428 }
429
430 if (stream_endpoint->send_stream){
431 stream_endpoint->send_stream = 0;
432 if (stream_endpoint->state == AVDTP_STREAM_ENDPOINT_STREAMING){
433 stream_endpoint->state = AVDTP_STREAM_ENDPOINT_STREAMING;
1/*
2 * Copyright (C) 2016 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 417 unchanged lines hidden (view full) ---

426 return;
427 }
428 }
429
430 if (stream_endpoint->send_stream){
431 stream_endpoint->send_stream = 0;
432 if (stream_endpoint->state == AVDTP_STREAM_ENDPOINT_STREAMING){
433 stream_endpoint->state = AVDTP_STREAM_ENDPOINT_STREAMING;
434 avdtp_streaming_emit_can_send_media_packet_now(context->avdtp_callback, connection->avdtp_cid, avdtp_local_seid(stream_endpoint), stream_endpoint->sequence_number);
434 avdtp_streaming_emit_can_send_media_packet_now(stream_endpoint,
435 stream_endpoint->sequence_number);
435 return;
436 }
437 }
438
439 avdtp_initiator_stream_config_subsm_run_endpoint(connection, stream_endpoint, stream_endpoint_state);
440
441 // check fragmentation
442 if ((connection->initiator_signaling_packet.packet_type != AVDTP_SINGLE_PACKET) && (connection->initiator_signaling_packet.packet_type != AVDTP_END_PACKET)){
443 avdtp_request_can_send_now_initiator(connection, connection->l2cap_signaling_cid);
444 }
445}
436 return;
437 }
438 }
439
440 avdtp_initiator_stream_config_subsm_run_endpoint(connection, stream_endpoint, stream_endpoint_state);
441
442 // check fragmentation
443 if ((connection->initiator_signaling_packet.packet_type != AVDTP_SINGLE_PACKET) && (connection->initiator_signaling_packet.packet_type != AVDTP_END_PACKET)){
444 avdtp_request_can_send_now_initiator(connection, connection->l2cap_signaling_cid);
445 }
446}