modules: switch more modules to the new property helpers

This commit is contained in:
Peter Hutterer 2021-10-12 14:57:47 +10:00 committed by Wim Taymans
parent c59ede837d
commit 32fb369b66
8 changed files with 18 additions and 34 deletions

View file

@ -96,9 +96,7 @@ static void node_port_init(void *data, struct pw_impl_port *port)
old = pw_impl_port_get_properties(port);
is_monitor = (str = pw_properties_get(old, PW_KEY_PORT_MONITOR)) != NULL &&
pw_properties_parse_bool(str);
is_monitor = pw_properties_get_bool(old, PW_KEY_PORT_MONITOR, false);
if (!is_monitor && direction != n->direction)
return;