From 1d080cb1f5ed4eceb311f5bbc33f0c16ebde9ea2 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 5 Feb 2015 17:54:03 +0100 Subject: [PATCH] Add default_max_bandwidth parameter and apply it to video when no bandwidth is specified in the signalling. --- coreapi/linphonecall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 226b9e9b9..ec0dd70b6 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -2175,6 +2175,8 @@ static int get_video_bw(LinphoneCall *call, const SalMediaDescription *md, const else if (md->bandwidth>0) { /*case where b=AS is given globally, not per stream*/ remote_bw=get_remaining_bandwidth_for_video(md->bandwidth,call->audio_bw); + } else { + remote_bw = lp_config_get_int(call->core->config, "net", "default_max_bandwidth", 1500); } bw=get_min_bandwidth(get_remaining_bandwidth_for_video(linphone_core_get_upload_bandwidth(call->core),call->audio_bw),remote_bw); return bw;