mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
policy-node: move variable up in scope
We are using it outside of the scope it is defined in.
This commit is contained in:
parent
fc044a37af
commit
dd0342167f
1 changed files with 1 additions and 2 deletions
|
|
@ -965,10 +965,9 @@ static int metadata_property(void *object, uint32_t subject,
|
|||
struct default_node *def;
|
||||
bool changed = false;
|
||||
char *val = NULL;
|
||||
char name[1024];
|
||||
|
||||
if (key != NULL && value != NULL) {
|
||||
char name[1024];
|
||||
|
||||
pw_log_info("meta %s: %s", key, value);
|
||||
if (json_object_find(value, "name", name, sizeof(name)) < 0)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue