Commit c5eaa00e authored by Ghislain MARY's avatar Ghislain MARY

Use nowebcam device if the call is paused.

parent a6aba86b
......@@ -4644,7 +4644,9 @@ void linphone_call_set_native_video_window_id(LinphoneCall *call, void *id) {
}
MSWebCam *linphone_call_get_video_device(const LinphoneCall *call) {
if (call->all_muted || call->camera_enabled == FALSE)
LinphoneCallState state = linphone_call_get_state(call);
bool_t paused = (state == LinphoneCallPausing) || (state == LinphoneCallPaused);
if (paused || call->all_muted || (call->camera_enabled == FALSE))
return get_nowebcam_device();
else
return call->core->video_conf.device;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment