avdtp_acceptor.c (096e646974112af5a72ec55d41f9fe65faa21f51) | avdtp_acceptor.c (84ad4212a9d1d8c8b99084db0fd846bb132505eb) |
---|---|
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 --- 418 unchanged lines hidden (view full) --- 427 stream_endpoint->acceptor_config_state = AVDTP_ACCEPTOR_W2_REJECT_WITH_ERROR_CODE; 428 connection->error_code = AVDTP_ERROR_CODE_BAD_STATE; 429 connection->reject_signal_identifier = connection->acceptor_signaling_packet.signal_identifier; 430 break; 431 } 432 break; 433 case AVDTP_SI_SUSPEND: 434 switch (stream_endpoint->state){ | 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 --- 418 unchanged lines hidden (view full) --- 427 stream_endpoint->acceptor_config_state = AVDTP_ACCEPTOR_W2_REJECT_WITH_ERROR_CODE; 428 connection->error_code = AVDTP_ERROR_CODE_BAD_STATE; 429 connection->reject_signal_identifier = connection->acceptor_signaling_packet.signal_identifier; 430 break; 431 } 432 break; 433 case AVDTP_SI_SUSPEND: 434 switch (stream_endpoint->state){ |
435 case AVDTP_STREAM_ENDPOINT_OPENED: | |
436 case AVDTP_STREAM_ENDPOINT_STREAMING: 437 stream_endpoint->state = AVDTP_STREAM_ENDPOINT_OPENED; 438 connection->num_suspended_seids--; 439 if (connection->num_suspended_seids <= 0){ 440 log_info("W2_ANSWER_SUSPEND_STREAM"); 441 stream_endpoint->acceptor_config_state = AVDTP_ACCEPTOR_W2_ACCEPT_SUSPEND_STREAM; 442 } 443 break; --- 268 unchanged lines hidden --- | 435 case AVDTP_STREAM_ENDPOINT_STREAMING: 436 stream_endpoint->state = AVDTP_STREAM_ENDPOINT_OPENED; 437 connection->num_suspended_seids--; 438 if (connection->num_suspended_seids <= 0){ 439 log_info("W2_ANSWER_SUSPEND_STREAM"); 440 stream_endpoint->acceptor_config_state = AVDTP_ACCEPTOR_W2_ACCEPT_SUSPEND_STREAM; 441 } 442 break; --- 268 unchanged lines hidden --- |