Skip to content

Commit

Permalink
:waspd: gh-675 Fix latency tuner config in roc_sender_config
Browse files Browse the repository at this point in the history
Don't forget to pass latency_tuner_backend and latency_tuner_profile
from roc_sender_config to pipeline.

Sponsored-by: waspd
  • Loading branch information
gavv committed Feb 20, 2024
1 parent ec82ada commit 1f21e84
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/public_api/src/adapters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,22 @@ bool sender_config_from_user(node::Context& context,
return false;
}

if (!latency_tuner_backend_from_user(out.latency.tuner_backend,
in.latency_tuner_backend)) {
roc_log(LogError,
"bad configuration: invalid roc_sender_config.latency_tuner_backend:"
" should be valid enum value");
return false;
}

if (!latency_tuner_profile_from_user(out.latency.tuner_profile,
in.latency_tuner_profile)) {
roc_log(LogError,
"bad configuration: invalid roc_sender_config.latency_tuner_profile:"
" should be valid enum value");
return false;
}

if (!resampler_backend_from_user(out.resampler.backend, in.resampler_backend)) {
roc_log(LogError,
"bad configuration: invalid roc_sender_config.resampler_backend:"
Expand Down

0 comments on commit 1f21e84

Please sign in to comment.