diff --git a/src/daemon/command.c b/src/daemon/command.c index 908b1ac92..12c5a05dc 100644 --- a/src/daemon/command.c +++ b/src/daemon/command.c @@ -218,6 +218,7 @@ static struct pw_command *parse_command_module_load(struct pw_properties *proper this = &impl->this; this->func = execute_command_module_load; + this->args = pw_split_strv(line, whitespace, INT_MAX, &this->n_args); for (arg = 1; arg < this->n_args; arg++) { @@ -227,6 +228,9 @@ static struct pw_command *parse_command_module_load(struct pw_properties *proper if (arg + 1 > this->n_args) goto no_module; + pw_free_strv(this->args); + this->args = pw_split_strv(line, whitespace, arg + 2, &this->n_args); + impl->first_arg = arg; return this; diff --git a/src/pipewire/impl-module.c b/src/pipewire/impl-module.c index 046be8376..4c8d18978 100644 --- a/src/pipewire/impl-module.c +++ b/src/pipewire/impl-module.c @@ -189,7 +189,7 @@ pw_context_load_module(struct pw_context *context, if (filename == NULL) goto error_not_found; - pw_log_debug("trying to load module: %s (%s)", name, filename); + pw_log_debug("trying to load module: %s (%s) args(%s)", name, filename, args); hnd = dlopen(filename, RTLD_NOW | RTLD_LOCAL); if (hnd == NULL)