pulse-server: module-combine-sink: simplify deletion of properties

This commit is contained in:
Barnabás Pőcze 2021-06-16 22:08:58 +02:00
parent a6151e96cd
commit 7903cfb126

View file

@ -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;