From 0ec655d063160fed946505b27048e5cd998b7fda Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 17 Aug 2010 15:42:16 +0200 Subject: [PATCH] fix compilation bug with video disabled --- coreapi/linphonecore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 0c5420d66..7e8572461 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -3018,9 +3018,9 @@ bool_t linphone_core_video_preview_enabled(const LinphoneCore *lc){ * This function works at any time, including during calls. **/ void linphone_core_enable_self_view(LinphoneCore *lc, bool_t val){ +#ifdef VIDEO_ENABLED LinphoneCall *call=linphone_core_get_current_call (lc); lc->video_conf.selfview=val; -#ifdef VIDEO_ENABLED if (call && call->videostream){ video_stream_enable_self_view(call->videostream,val); }