Increase pod buffer size

The props of a 64 channel node are at least 2048 bytes long so make sure
we can build and filter them.

Fixes #1574
This commit is contained in:
Wim Taymans 2021-09-06 15:07:28 +02:00
parent f9d8bdb9b8
commit 435de99428
10 changed files with 11 additions and 11 deletions

View file

@ -292,7 +292,7 @@ static int add_node_update(struct node_data *data, uint32_t change_mask, uint32_
if (change_mask & PW_CLIENT_NODE_UPDATE_PARAMS) {
uint32_t i, idx, id;
uint8_t buf[2048];
uint8_t buf[4096];
struct spa_pod_builder b = { 0 };
for (i = 0; i < node->info.n_params; i++) {
@ -347,7 +347,7 @@ static int add_port_update(struct node_data *data, struct pw_impl_port *port, ui
if (change_mask & PW_CLIENT_NODE_PORT_UPDATE_PARAMS) {
uint32_t i, idx, id;
uint8_t buf[2048];
uint8_t buf[4096];
struct spa_pod_builder b = { 0 };
for (i = 0; i < port->info.n_params; i++) {

View file

@ -160,7 +160,7 @@ setup_props(struct pw_context *context, struct spa_node *spa_node, struct pw_pro
void *state = NULL;
const char *key;
uint32_t index = 0;
uint8_t buf[2048];
uint8_t buf[4096];
struct spa_pod_builder b = SPA_POD_BUILDER_INIT(buf, sizeof(buf));
const struct spa_pod_prop *prop = NULL;

View file

@ -322,7 +322,7 @@ int pw_impl_device_for_each_param(struct pw_impl_device *device,
if (pi->user == 1) {
struct pw_param *p;
uint8_t buffer[1024];
uint8_t buffer[4096];
struct spa_pod_builder b = { 0 };
struct spa_result_device_params result;
uint32_t count = 0;

View file

@ -1875,7 +1875,7 @@ int pw_impl_node_for_each_param(struct pw_impl_node *node,
if (pi->user == 1) {
struct pw_param *p;
uint8_t buffer[1024];
uint8_t buffer[4096];
struct spa_pod_builder b = { 0 };
struct spa_result_node_params result;
uint32_t count = 0;