Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
PipeWire
pipewire
Commits
77631542
Commit
77631542
authored
Dec 11, 2020
by
Wim Taymans
Browse files
a2dp: increase temp buffer
ldac frames are larger and need more space. See
#449
parent
00295b64
Pipeline
#242753
passed with stages
in 1 minute and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
spa/plugins/bluez5/a2dp-sink.c
View file @
77631542
...
...
@@ -138,7 +138,7 @@ struct impl {
uint16_t
seqnum
;
uint32_t
timestamp
;
uint64_t
sample_count
;
uint8_t
tmp_buffer
[
512
];
uint8_t
tmp_buffer
[
4096
];
uint32_t
tmp_buffer_used
;
};
...
...
@@ -639,6 +639,11 @@ static int do_start(struct impl *this)
this
->
block_size
=
this
->
codec
->
get_block_size
(
this
->
codec_data
);
this
->
num_blocks
=
this
->
codec
->
get_num_blocks
(
this
->
codec_data
);
if
(
this
->
block_size
>
sizeof
(
this
->
tmp_buffer
))
{
spa_log_error
(
this
->
log
,
"block-size %d > %zu"
,
this
->
block_size
,
sizeof
(
this
->
tmp_buffer
));
return
-
EIO
;
}
spa_log_debug
(
this
->
log
,
NAME
" %p: block_size %d num_blocks:%d"
,
this
,
this
->
block_size
,
this
->
num_blocks
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment