fix for dynamic camera change

This commit is contained in:
Simon Morlat 2011-09-20 12:55:12 +02:00
parent ce9780dcb8
commit 5afb153457
2 changed files with 4 additions and 4 deletions

View file

@ -2233,9 +2233,9 @@ 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);
if (call->camera_active && call->videostream->cam!=lc->video_conf.device){
video_stream_change_camera(call->videostream,lc->video_conf.device);
}else video_stream_update_video_params(call->videostream);
}
#endif
}

@ -1 +1 @@
Subproject commit ed88d302d5c3ab8c4dec32e24f5ef375e81654f7
Subproject commit 9e7e1e64ef6287184f8d1642a52e60ad1838b30e