pipewire: module-roc-{sink,source}: port to ROC v0.2.X

Incompatible changes between ROC v0.1.X and v0.2.X require
adjusting the ROC modules' code. The largest change is going
from `roc_address` to `roc_endpoint`. There is also a breaking
change, the removal of `local.ip` parameter from module-roc-sink
as `roc_sender_bind()` has been removed.

The API usage was modelled after https://github.com/roc-streaming/roc-pulse

See #1757
Fixes #2911
This commit is contained in:
Barnabás Pőcze 2022-12-27 17:20:45 +01:00 committed by Wim Taymans
parent be99aa1eba
commit 73c5f6e1bf
5 changed files with 166 additions and 170 deletions

View file

@ -116,7 +116,6 @@ static const struct spa_dict_item module_roc_sink_info[] = {
{ PW_KEY_MODULE_USAGE, "sink_name=<name for the sink> "
"sink_properties=<properties for the sink> "
"fec_code=<empty>|disable|rs8m|ldpc "
"local_ip=<local sender ip> "
"remote_ip=<remote receiver ip> "
"remote_source_port=<remote receiver port for source packets> "
"remote_repair_port=<remote receiver port for repair packets> " },
@ -163,11 +162,6 @@ static int module_roc_sink_prepare(struct module * const module)
goto out;
}
if ((str = pw_properties_get(props, "local_ip")) != NULL) {
pw_properties_set(roc_props, "local.ip", str);
pw_properties_set(props, "local_ip", NULL);
}
if ((str = pw_properties_get(props, "remote_source_port")) != NULL) {
pw_properties_set(roc_props, "remote.source.port", str);
pw_properties_set(props, "remote_source_port", NULL);