mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 08:37:22 +00:00
a2dp: report required buffer size when too small
This commit is contained in:
parent
58044c3948
commit
4eb4be81ab
@ -524,7 +524,7 @@ int a2dp_max_media_payload_size(uint8_t int_seid){
|
||||
|
||||
static void a2dp_source_copy_media_payload(uint8_t * media_packet, int size, int * offset, uint8_t * storage, int num_bytes_to_copy, uint8_t num_frames){
|
||||
if (size < num_bytes_to_copy + 1){
|
||||
log_error("small outgoing buffer");
|
||||
log_error("small outgoing buffer: buffer size %u, but need %u", size, num_bytes_to_copy + 1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user