mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
adapter: handle -ENOTSUP for commands
When using custom commands, the converter might return -ENOTSUP and we should ignore this.
This commit is contained in:
parent
9207fea992
commit
a968027bdc
2 changed files with 8 additions and 2 deletions
|
|
@ -1045,7 +1045,10 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
|
|||
break;
|
||||
}
|
||||
|
||||
if ((res = spa_node_send_command(this->target, command)) < 0) {
|
||||
res = spa_node_send_command(this->target, command);
|
||||
if (res == -ENOTSUP)
|
||||
res = 0;
|
||||
if (res < 0) {
|
||||
spa_log_error(this->log, "%p: can't send command %d: %s",
|
||||
this, SPA_NODE_COMMAND_ID(command),
|
||||
spa_strerror(res));
|
||||
|
|
|
|||
|
|
@ -1012,7 +1012,10 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
|
|||
break;
|
||||
}
|
||||
|
||||
if ((res = spa_node_send_command(this->target, command)) < 0) {
|
||||
res = spa_node_send_command(this->target, command);
|
||||
if (res == -ENOTSUP)
|
||||
res = 0;
|
||||
if (res < 0) {
|
||||
spa_log_error(this->log, "%p: can't send command %d: %s",
|
||||
this, SPA_NODE_COMMAND_ID(command),
|
||||
spa_strerror(res));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue