mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 03:58:08 +00:00
Use nowebcam device if the call is paused.
This commit is contained in:
parent
a6aba86bb8
commit
c5eaa00e6f
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue