add some more useful defines

Add define to match all ids for nodes and params.
Add define for invalid permissions
This commit is contained in:
Wim Taymans 2020-01-15 11:13:37 +01:00
parent cf53ededd0
commit 043e7f24fe
25 changed files with 50 additions and 50 deletions

View file

@ -149,7 +149,7 @@ static struct pw_impl_port *get_port(struct pw_impl_node *node, enum spa_directi
struct pw_context *context = pw_impl_node_get_context(node);
int res;
p = pw_impl_node_find_port(node, direction, SPA_ID_INVALID);
p = pw_impl_node_find_port(node, direction, PW_ID_ANY);
if (p == NULL || pw_impl_port_is_linked(p)) {
uint32_t port_id;
@ -227,7 +227,7 @@ static void *create_object(void *_data,
input_node = pw_global_get_object(global);
if (output_port_id == SPA_ID_INVALID) {
if (output_port_id == PW_ID_ANY) {
outport = get_port(output_node, SPA_DIRECTION_OUTPUT);
}
else {
@ -240,7 +240,7 @@ static void *create_object(void *_data,
if (outport == NULL)
goto error_output_port;
if (input_port_id == SPA_ID_INVALID)
if (input_port_id == PW_ID_ANY)
inport = get_port(input_node, SPA_DIRECTION_INPUT);
else {
global = pw_context_find_global(context, input_port_id);