mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-07 03:01:36 -04:00
pulse-server: module-combine-sink: simplify deletion of properties
This commit is contained in:
parent
a6151e96cd
commit
7903cfb126
1 changed files with 2 additions and 6 deletions
|
|
@ -436,15 +436,11 @@ struct module *create_module_combine_sink(struct impl *impl, const char *argumen
|
||||||
pw_properties_set(props, "slaves", NULL);
|
pw_properties_set(props, "slaves", NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((str = pw_properties_get(props, "adjust_time")) != NULL) {
|
if (pw_properties_set(props, "adjust_time", NULL) != 0)
|
||||||
pw_log_info("The `adjust_time` modarg is ignored");
|
pw_log_info("The `adjust_time` modarg is ignored");
|
||||||
pw_properties_set(props, "adjust_time", NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((str = pw_properties_get(props, "resample_method")) != NULL) {
|
if (pw_properties_set(props, "resample_method", NULL) != 0)
|
||||||
pw_log_info("The `resample_method` modarg is ignored");
|
pw_log_info("The `resample_method` modarg is ignored");
|
||||||
pw_properties_set(props, "resample_method", NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (module_args_to_audioinfo(impl, props, &info) < 0) {
|
if (module_args_to_audioinfo(impl, props, &info) < 0) {
|
||||||
res = -EINVAL;
|
res = -EINVAL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue