mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
bluez5: fix CVSD decode()
"Decoding" in CVSD should just copy bytes, packets may be any size.
This commit is contained in:
parent
dc618d37c6
commit
b869305282
1 changed files with 7 additions and 3 deletions
|
|
@ -163,10 +163,14 @@ static int codec_decode(void *data,
|
|||
void *dst, size_t dst_size,
|
||||
size_t *dst_out)
|
||||
{
|
||||
struct impl *this = data;
|
||||
int dummy;
|
||||
uint32_t avail;
|
||||
|
||||
return codec_encode(this, src, src_size, dst, dst_size, dst_out, &dummy);
|
||||
avail = SPA_MIN(src_size, dst_size);
|
||||
if (avail)
|
||||
spa_memcpy(dst, src, avail);
|
||||
|
||||
*dst_out = avail;
|
||||
return avail;
|
||||
}
|
||||
|
||||
static void codec_set_log(struct spa_log *global_log)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue