mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-18 08:56:45 -05: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;
|
struct default_node *def;
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
char *val = NULL;
|
char *val = NULL;
|
||||||
|
|
||||||
if (key != NULL && value != NULL) {
|
|
||||||
char name[1024];
|
char name[1024];
|
||||||
|
|
||||||
|
if (key != NULL && value != NULL) {
|
||||||
pw_log_info("meta %s: %s", key, value);
|
pw_log_info("meta %s: %s", key, value);
|
||||||
if (json_object_find(value, "name", name, sizeof(name)) < 0)
|
if (json_object_find(value, "name", name, sizeof(name)) < 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue