a2dp: report required buffer size when too small

This commit is contained in:
Matthias Ringwald 2017-06-30 12:42:09 +02:00
parent 58044c3948
commit 4eb4be81ab

View File

@ -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;
}