mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
modules-raop: handle uninitialized vars
This commit is contained in:
parent
00998ffd7e
commit
67db81729e
1 changed files with 3 additions and 0 deletions
|
|
@ -1638,6 +1638,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
impl->protocol = PROTO_TCP;
|
||||
else {
|
||||
pw_log_error( "can't handle transport %s", str);
|
||||
res = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
|
@ -1649,6 +1650,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
impl->encryption = CRYPTO_RSA;
|
||||
else {
|
||||
pw_log_error( "can't handle encryption type %s", str);
|
||||
res = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
|
@ -1658,6 +1660,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
impl->codec = CODEC_PCM;
|
||||
else {
|
||||
pw_log_error( "can't handle codec type %s", str);
|
||||
res = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
str = pw_properties_get(props, "raop.password");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue