]> 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)
committerJehan Monnier <jehan.monnier@linphone.org>
Thu, 21 Jul 2011 14:39:49 +0000 (16:39 +0200)
coreapi/linphonecore.c

index 8d9e36438f63516a7072ebaa10fd0770d0eb3c31..afeecae976b1729ed386c740c8145a6ddfd154ca 100644 (file)
@@ -2185,6 +2185,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