mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
spa-node: don't warn on properties
When the node does not support enum_params or when the Props param is not supported, suppress the warning.
This commit is contained in:
parent
3c7186cfd6
commit
9049f1fdbb
1 changed files with 4 additions and 2 deletions
|
|
@ -173,7 +173,9 @@ setup_props(struct pw_context *context, struct spa_node *spa_node, struct pw_pro
|
||||||
&b);
|
&b);
|
||||||
if (res != 1) {
|
if (res != 1) {
|
||||||
if (res < 0)
|
if (res < 0)
|
||||||
pw_log_debug("spa_node_get_props failed: %s", spa_strerror(res));
|
pw_log_debug("spa_node_get_props result: %s", spa_strerror(res));
|
||||||
|
if (res == -ENOTSUP || res == -ENOENT)
|
||||||
|
res = 0;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -261,7 +263,7 @@ struct pw_impl_node *pw_spa_node_load(struct pw_context *context,
|
||||||
spa_node = iface;
|
spa_node = iface;
|
||||||
|
|
||||||
if (properties != NULL) {
|
if (properties != NULL) {
|
||||||
if (setup_props(context, spa_node, properties) < 0) {
|
if ((res = setup_props(context, spa_node, properties)) < 0) {
|
||||||
pw_log_warn("can't setup properties: %s", spa_strerror(res));
|
pw_log_warn("can't setup properties: %s", spa_strerror(res));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue