mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-17 07:00:03 -05:00
stream: use sizeof instead of hardcoded value
This commit is contained in:
parent
b6059fd007
commit
b4dc04c777
1 changed files with 1 additions and 1 deletions
|
|
@ -1554,7 +1554,7 @@ static void add_params(struct stream *impl)
|
|||
uint8_t buffer[4096];
|
||||
struct spa_pod_builder b;
|
||||
|
||||
spa_pod_builder_init(&b, buffer, 4096);
|
||||
spa_pod_builder_init(&b, buffer, sizeof(buffer));
|
||||
|
||||
add_param(impl, SPA_PARAM_IO, PARAM_FLAG_LOCKED,
|
||||
spa_pod_builder_add_object(&b,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue