From b852503f55e4f09c8b9047151aca1ccdcb28708a Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Thu, 25 Jun 2015 14:02:46 +0200 Subject: [PATCH] save video cam used in call object when switched --- coreapi/linphonecore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index fef5330e3..8154c1d98 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -3583,7 +3583,7 @@ int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const Linpho video_stream_set_sent_video_size(call->videostream,linphone_core_get_preferred_video_size(lc)); video_stream_set_fps(call->videostream, linphone_core_get_preferred_framerate(lc)); if (call->camera_enabled && call->videostream->cam!=lc->video_conf.device){ - video_stream_change_camera(call->videostream,lc->video_conf.device); + video_stream_change_camera(call->videostream,call->cam = lc->video_conf.device); }else video_stream_update_video_params(call->videostream); } #endif