mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
avoid uninitialized variables
This commit is contained in:
parent
95192b21f1
commit
f08c35259c
2 changed files with 9 additions and 10 deletions
|
|
@ -490,10 +490,10 @@ static int negotiate_formats(struct data *data)
|
|||
if (spa_node_port_enum_params_sync(data->source_follower_node,
|
||||
SPA_DIRECTION_OUTPUT, 0,
|
||||
SPA_PARAM_Buffers, &state, filter, ¶m, &b) != 1)
|
||||
return res;
|
||||
return -ENOTSUP;
|
||||
spa_pod_fixate(param);
|
||||
if (spa_pod_parse_object(param, SPA_TYPE_OBJECT_ParamBuffers, NULL,
|
||||
SPA_PARAM_BUFFERS_size, SPA_POD_Int(&buffer_size)) < 0)
|
||||
if ((res = spa_pod_parse_object(param, SPA_TYPE_OBJECT_ParamBuffers, NULL,
|
||||
SPA_PARAM_BUFFERS_size, SPA_POD_Int(&buffer_size))) < 0)
|
||||
return res;
|
||||
|
||||
/* set the sink and source formats */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue