From 148569279b6d655e98f3b049fcb502deab4ba142 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 6 Apr 2023 12:10:46 +0200 Subject: [PATCH] pulse-server: add enable_opus support in rtp-send --- src/modules/module-protocol-pulse/modules/module-rtp-send.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/module-protocol-pulse/modules/module-rtp-send.c b/src/modules/module-protocol-pulse/modules/module-rtp-send.c index 03148f5a7..fad626304 100644 --- a/src/modules/module-protocol-pulse/modules/module-rtp-send.c +++ b/src/modules/module-protocol-pulse/modules/module-rtp-send.c @@ -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) { pw_properties_set(global_props, "source.ip", str); pw_properties_set(sap_props, "source.ip", str);