mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse-server: handle unknown format
This commit is contained in:
parent
dfb6206207
commit
5b2df0b35c
1 changed files with 8 additions and 2 deletions
|
|
@ -178,8 +178,14 @@ static int module_rtp_send_prepare(struct module * const module)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
info.format = 0;
|
info.format = 0;
|
||||||
if ((str = pw_properties_get(props, "format")) != NULL)
|
if ((str = pw_properties_get(props, "format")) != NULL) {
|
||||||
info.format = format_paname2id(str, strlen(str));
|
if ((info.format = format_paname2id(str, strlen(str))) ==
|
||||||
|
SPA_AUDIO_FORMAT_UNKNOWN) {
|
||||||
|
pw_log_error("unknown format %s", str);
|
||||||
|
res = -EINVAL;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((str = pw_properties_get(props, "destination_ip")) != NULL)
|
if ((str = pw_properties_get(props, "destination_ip")) != NULL)
|
||||||
pw_properties_set(global_props, "destination.ip", str);
|
pw_properties_set(global_props, "destination.ip", str);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue