mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-22 08:56:59 -05:00
modules: switch to new property helpers
This commit is contained in:
parent
12c5a9b7ea
commit
d8de1cb255
4 changed files with 7 additions and 13 deletions
|
|
@ -367,7 +367,6 @@ static void *create_object(void *_data,
|
|||
const char *output_node_str, *input_node_str;
|
||||
const char *output_port_str, *input_port_str;
|
||||
struct link_data *ld;
|
||||
const char *str;
|
||||
int res;
|
||||
bool linger;
|
||||
|
||||
|
|
@ -401,8 +400,7 @@ static void *create_object(void *_data,
|
|||
if (inport == NULL)
|
||||
goto error_input_port;
|
||||
|
||||
str = pw_properties_get(properties, PW_KEY_OBJECT_LINGER);
|
||||
linger = str ? pw_properties_parse_bool(str) : false;
|
||||
linger = pw_properties_get_bool(properties, PW_KEY_OBJECT_LINGER, false);
|
||||
|
||||
pw_properties_setf(properties, PW_KEY_FACTORY_ID, "%d",
|
||||
pw_impl_factory_get_info(d->this)->id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue