From 4943e51f687a120245b2c6ecfda4d200d6b4480e Mon Sep 17 00:00:00 2001 From: Martin Piatka Date: Mon, 27 May 2024 15:34:20 +0200 Subject: [PATCH] hd-rum-translator: Force recompression for conference Previously the --conference-compression parameter would only work for automatic output ports (sending back to participants who are sending to us), while the hosts explicitely specified on cmdline would default to packet reflecting mode (and not receive the mixed video). --- src/hd-rum-translator/hd-rum-translator.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/hd-rum-translator/hd-rum-translator.cpp b/src/hd-rum-translator/hd-rum-translator.cpp index 47ea651c3..48fa93927 100644 --- a/src/hd-rum-translator/hd-rum-translator.cpp +++ b/src/hd-rum-translator/hd-rum-translator.cpp @@ -585,7 +585,7 @@ struct host_opts { int rx_port; int tx_port; int mtu; - char *compression; + const char *compression; char *fec; long long int bitrate; int force_ip_version; @@ -1102,7 +1102,11 @@ int main(int argc, char **argv) tx_port = params.hosts[i].tx_port; } - const auto& h = params.hosts[i]; + auto& h = params.hosts[i]; + + if(!h.compression && params.out_conf.mode == CONFERENCE){ + h.compression = params.conference_compression; + } int idx = create_output_port(&state, h.addr, rx_port, tx_port, state.bufsize, h.force_ip_version,