Set default value for adaptive rate algorithm to "simple", the current algorithm

This commit is contained in:
Gautier Pelloux-Prayer 2014-09-10 14:07:42 +02:00
parent 3613728d43
commit abc0265b97
2 changed files with 2 additions and 2 deletions

View file

@ -805,7 +805,7 @@ void linphone_core_set_adaptive_rate_algorithm(LinphoneCore *lc, const char* alg
* See linphone_core_set_adaptive_rate_algorithm().
**/
const char * linphone_core_get_adaptive_rate_algorithm(const LinphoneCore *lc){
return lp_config_get_string(lc->config, "net", "adaptive_rate_algorithm", NULL);
return lp_config_get_string(lc->config, "net", "adaptive_rate_algorithm", "Simple");
}
bool_t linphone_core_rtcp_enabled(const LinphoneCore *lc){

View file

@ -313,7 +313,7 @@ public interface LinphoneCore {
for (int i=0; i<values.size();i++) {
AdaptiveRateAlgorithm alg = (AdaptiveRateAlgorithm) values.elementAt(i);
if (alg.mStringValue.equals(value)) return alg;
if (alg.mStringValue.equalsIgnoreCase(value)) return alg;
}
throw new RuntimeException("AdaptiveRateAlgorithm not found ["+value+"]");
}