node: dispatch RequestProcess event and command

The event is send to the driver node.
The command is sent to node directly.
This commit is contained in:
Wim Taymans 2021-10-19 16:01:08 +02:00
parent 3471391e0e
commit b5080a0395
2 changed files with 11 additions and 2 deletions

View file

@ -511,7 +511,9 @@ static int client_node_command(void *object, const struct spa_command *command)
pw_proxy_error(proxy, res, "suspend failed");
}
break;
case SPA_NODE_COMMAND_RequestProcess:
res = pw_impl_node_send_command(data->node, command);
break;
default:
pw_log_warn("unhandled node command %d", SPA_NODE_COMMAND_ID(command));
res = -ENOTSUP;