]> sjero.net Git - linphone/commitdiff
Fix bug 0000201: linphone crashes upon asking for video when low bandwidth detected.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 10 Oct 2012 08:28:16 +0000 (10:28 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Wed, 10 Oct 2012 08:28:16 +0000 (10:28 +0200)
coreapi/linphonecore.c

index 2e7ff63720f56bfa7f07a33a4d74df32a8d6ba0d..2936ca0bad98b79333712d391bea2c6c4a97ba91 100644 (file)
@@ -2581,7 +2581,7 @@ int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const Linpho
                }
                call->params = *params;
                update_local_media_description(lc, call);
-               if ((call->ice_session != NULL) && !has_video && params->has_video) {
+               if ((call->ice_session != NULL) && !has_video && call->params.has_video) {
                        /* Defer call update until the ICE candidates gathering process has finished. */
                        ms_message("Defer call update to gather ICE candidates");
                        linphone_call_init_video_stream(call);