protocol-native: improve bool in set_active

This commit is contained in:
Wim Taymans 2020-03-02 10:48:31 +01:00
parent 33102abe4d
commit 77cc58ba71

View file

@ -1021,7 +1021,7 @@ static int client_node_demarshal_set_active(void *object, const struct pw_protoc
SPA_POD_Bool(&active)) < 0) SPA_POD_Bool(&active)) < 0)
return -EINVAL; return -EINVAL;
pw_resource_notify(resource, struct pw_client_node_methods, set_active, 0, active); pw_resource_notify(resource, struct pw_client_node_methods, set_active, 0, active ? true : false);
return 0; return 0;
} }