fix bug regarding automatically_accept video policy

This commit is contained in:
Simon Morlat 2014-01-28 22:08:58 +01:00
parent 43d5378f52
commit a14fc017cd

View file

@ -614,7 +614,7 @@ LinphoneCall * linphone_call_new_incoming(LinphoneCore *lc, LinphoneAddress *fro
call->current_params.privacy=(LinphonePrivacyMask)sal_op_get_privacy(call->op);
/*set video support */
md=sal_call_get_remote_media_description(op);
call->params.has_video &= !!lc->video_policy.automatically_accept;
call->params.has_video = !!lc->video_policy.automatically_accept;
if (md) {
// It is licit to receive an INVITE without SDP
// In this case WE chose the media parameters according to policy.