diff --git a/coreapi/callbacks.c b/coreapi/callbacks.c index 597aeb0c8..5def5557f 100644 --- a/coreapi/callbacks.c +++ b/coreapi/callbacks.c @@ -438,8 +438,8 @@ static void register_failure(SalOp *op, SalError error, SalReason reason, const } static void vfu_request(SalOp *op){ - LinphoneCall *call=(LinphoneCall*)sal_op_get_user_pointer (op); #ifdef VIDEO_ENABLED + LinphoneCall *call=(LinphoneCall*)sal_op_get_user_pointer (op); if (call==NULL){ ms_warning("VFU request but no call !"); return ; diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 17df0e52a..fbb4f0212 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -395,7 +395,7 @@ void linphone_call_init_media_streams(LinphoneCall *call){ #endif } #else - lc->videostream=NULL; + call->videostream=NULL; #endif }