mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Only allows use of Simple adaptive rate algorithm
This commit is contained in:
parent
de4b77f54e
commit
9757d69c1b
1 changed files with 10 additions and 1 deletions
|
|
@ -1468,11 +1468,20 @@ bool_t linphone_core_adaptive_rate_control_enabled(const LinphoneCore *lc){
|
|||
}
|
||||
|
||||
void linphone_core_set_adaptive_rate_algorithm(LinphoneCore *lc, const char* algorithm){
|
||||
if (ms_qos_analyzer_algorithm_from_string(algorithm) != MSQosAnalyzerAlgorithmSimple) {
|
||||
ms_warning("Unsupported adaptive rate algorithm [%s] on core [%p], using Simple",algorithm,lc);
|
||||
linphone_core_set_adaptive_rate_algorithm(lc,ms_qos_analyzer_algorithm_to_string(MSQosAnalyzerAlgorithmSimple));
|
||||
return;
|
||||
}
|
||||
lp_config_set_string(lc->config,"net","adaptive_rate_algorithm",algorithm);
|
||||
}
|
||||
|
||||
const char * linphone_core_get_adaptive_rate_algorithm(const LinphoneCore *lc){
|
||||
return lp_config_get_string(lc->config, "net", "adaptive_rate_algorithm", "Simple");
|
||||
const char* saved_value = lp_config_get_string(lc->config, "net", "adaptive_rate_algorithm", "Simple");
|
||||
if (ms_qos_analyzer_algorithm_from_string(saved_value) != MSQosAnalyzerAlgorithmSimple) {
|
||||
ms_warning("Unsupported adaptive rate algorithm [%s] on core [%p], using Simple",saved_value,lc);
|
||||
}
|
||||
return ms_qos_analyzer_algorithm_to_string(MSQosAnalyzerAlgorithmSimple);
|
||||
}
|
||||
|
||||
bool_t linphone_core_rtcp_enabled(const LinphoneCore *lc){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue