mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
parse boolean in config with pw_properties_get_bool
This commit is contained in:
parent
7a190dd2ab
commit
6251d37cc8
1 changed files with 1 additions and 5 deletions
|
|
@ -2162,11 +2162,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
||||||
&impl->core_listener,
|
&impl->core_listener,
|
||||||
&core_events, impl);
|
&core_events, impl);
|
||||||
|
|
||||||
if ((str = pw_properties_get(impl->control_props, "enabled")) == NULL) {
|
impl->control_stream_active = pw_properties_get_bool(impl->control_props, "enabled", false);
|
||||||
impl->control_stream_active = false;
|
|
||||||
} else {
|
|
||||||
impl->control_stream_active = spa_atob(str);
|
|
||||||
}
|
|
||||||
|
|
||||||
setup_streams(impl);
|
setup_streams(impl);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue