mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
Small cleanups
Improve debug Fix core info event, pass the copied info around in remote.
This commit is contained in:
parent
26e9daf6b7
commit
2ca25e5bf4
5 changed files with 15 additions and 17 deletions
|
|
@ -52,7 +52,7 @@ static struct pw_node *create_node(void *_data,
|
|||
lib = pw_properties_get(properties, "spa.library.name");
|
||||
factory_name = pw_properties_get(properties, "spa.factory.name");
|
||||
|
||||
if(lib == NULL || factory_name == NULL)
|
||||
if (lib == NULL || factory_name == NULL)
|
||||
goto no_properties;
|
||||
|
||||
node = pw_spa_node_load(data->core,
|
||||
|
|
@ -68,9 +68,12 @@ static struct pw_node *create_node(void *_data,
|
|||
return node;
|
||||
|
||||
no_properties:
|
||||
pw_log_error("missing properties");
|
||||
pw_log_error("needed properties: spa.library.name=<library-name> spa.factory.name=<factory-name>");
|
||||
if (resource) {
|
||||
pw_resource_error(resource, SPA_RESULT_INVALID_ARGUMENTS, "missing properties");
|
||||
pw_resource_error(resource, SPA_RESULT_INVALID_ARGUMENTS,
|
||||
"needed properties: "
|
||||
"spa.library.name=<library-name> "
|
||||
"spa.factory.name=<factory-name>");
|
||||
}
|
||||
return NULL;
|
||||
no_mem:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue