mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pulse-server: module-pipe-source: set error code when entity is not pipe
Previously, the code did not set any error code, leaving res = 0, when the file existed but it wasn't a pipe. This resulted in no status code being returned to the client.
This commit is contained in:
parent
9076e3e80b
commit
8a61374592
1 changed files with 2 additions and 1 deletions
|
|
@ -337,7 +337,8 @@ struct module *create_module_pipe_source(struct impl *impl, const char *argument
|
|||
}
|
||||
|
||||
if (!S_ISFIFO(st.st_mode)) {
|
||||
pw_log_error("'%s' is not a FIFO.", filename);
|
||||
res = -EEXIST;
|
||||
pw_log_error("'%s' is not a FIFO", filename);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue