mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
pulse-server: add enable_opus support in rtp-send
This commit is contained in:
parent
0520db8d5f
commit
148569279b
1 changed files with 5 additions and 0 deletions
|
|
@ -212,6 +212,11 @@ static int module_rtp_send_prepare(struct module * const module)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pw_properties_set(global_props, "sess.media", "audio");
|
||||||
|
if ((str = pw_properties_get(props, "enable_opus")) != NULL) {
|
||||||
|
if (module_args_parse_bool(str))
|
||||||
|
pw_properties_set(global_props, "sess.media", "opus");
|
||||||
|
}
|
||||||
if ((str = pw_properties_get(props, "source_ip")) != NULL) {
|
if ((str = pw_properties_get(props, "source_ip")) != NULL) {
|
||||||
pw_properties_set(global_props, "source.ip", str);
|
pw_properties_set(global_props, "source.ip", str);
|
||||||
pw_properties_set(sap_props, "source.ip", str);
|
pw_properties_set(sap_props, "source.ip", str);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue