From c5eaa00e6fee5487c1cd3e92ad3644f0cdcb60fb Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 22 Oct 2015 15:37:20 +0200 Subject: [PATCH] Use nowebcam device if the call is paused. --- coreapi/linphonecall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 1bd1f32e4..f4ec3ac8e 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -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;