mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
daemon: add nofail option to the modules section
Use nofail on rtkit when it's not available.
This commit is contained in:
parent
b8583799ff
commit
7eac9874f0
2 changed files with 12 additions and 5 deletions
|
|
@ -122,10 +122,13 @@ static int load_module(struct data *d, const char *key, const char *args, const
|
|||
if (errno == ENOENT && flags && strstr(flags, "ifexists") != NULL) {
|
||||
pw_log_debug(NAME" %p: skipping unavailable module %s",
|
||||
d, key);
|
||||
} else {
|
||||
} else if (flags == NULL || strstr(flags, "nofail") == NULL) {
|
||||
pw_log_error(NAME" %p: could not load module \"%s\": %m",
|
||||
d, key);
|
||||
return -errno;
|
||||
} else {
|
||||
pw_log_info(NAME" %p: could not load module \"%s\": %m",
|
||||
d, key);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue