Skip to content

Commit

Permalink
hd-rum-translator: Force recompression for conference
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
mpiatka committed May 27, 2024
1 parent 05fb0a5 commit 4943e51
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/hd-rum-translator/hd-rum-translator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4943e51

Please sign in to comment.