]> sjero.net Git - linphone/commitdiff
update cam on update call
authorJehan Monnier <jehan.monnier@linphone.org>
Thu, 21 Jul 2011 14:39:49 +0000 (16:39 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@linphone.org>
Thu, 15 Sep 2011 09:14:21 +0000 (11:14 +0200)
coreapi/linphonecore.c

index c1eea71736e2cf25cfc34afa29dc1e1e70eeab37..417751776ab186f983a3b140a05b7e2f3b94ef05 100644 (file)
@@ -2230,6 +2230,8 @@ int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const Linpho
 #ifdef VIDEO_ENABLED
                if (call->videostream!=NULL){
                        video_stream_set_sent_video_size(call->videostream,linphone_core_get_preferred_video_size(lc));
+                       if (call->camera_active)
+                               call->videostream->cam=lc->video_conf.device; /*to take into account eventual cam changes*/
                        video_stream_update_video_params (call->videostream);
                }
 #endif