small fix in linphone_call_get_video_device

This commit is contained in:
Sandrine Avakian 2016-01-28 14:56:43 +01:00
parent 86d2d9ffc3
commit 466437763d

View file

@ -4748,7 +4748,7 @@ MSWebCam *linphone_call_get_video_device(const LinphoneCall *call) {
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();
return get_nowebcam_device(call->core->factory);
else
return call->core->video_conf.device;
}