mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
modules: return -EINVAL on invalid port
This commit is contained in:
parent
7568a64ab6
commit
f31d87cfee
1 changed files with 1 additions and 0 deletions
|
|
@ -511,6 +511,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
||||||
|
|
||||||
impl->src_port = pw_properties_get_uint32(props, "source.port", 0);
|
impl->src_port = pw_properties_get_uint32(props, "source.port", 0);
|
||||||
if (impl->src_port == 0) {
|
if (impl->src_port == 0) {
|
||||||
|
res = -EINVAL;
|
||||||
pw_log_error("invalid source.port");
|
pw_log_error("invalid source.port");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue