From d179ab7f6e8d1bb89380d779d4a5db5ca218d0a1 Mon Sep 17 00:00:00 2001 From: smorlat Date: Wed, 11 Feb 2009 15:53:57 +0000 Subject: [PATCH] fix non-video build. git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@254 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/coreapi/linphonecore.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linphone/coreapi/linphonecore.c b/linphone/coreapi/linphonecore.c index aed84c0a4..0d381e897 100644 --- a/linphone/coreapi/linphonecore.c +++ b/linphone/coreapi/linphonecore.c @@ -2041,9 +2041,11 @@ bool_t linphone_core_video_preview_enabled(const LinphoneCore *lc){ void linphone_core_enable_self_view(LinphoneCore *lc, bool_t val){ lc->video_conf.selfview=val; +#ifdef VIDEO_ENABLED if (lc->videostream){ video_stream_enable_self_view(lc->videostream,val); } +#endif } bool_t linphone_core_self_view_enabled(const LinphoneCore *lc){ @@ -2072,10 +2074,12 @@ const char *linphone_core_get_video_device(const LinphoneCore *lc){ } unsigned long linphone_core_get_native_video_window_id(const LinphoneCore *lc){ +#ifdef VIDEO_ENABLED if (lc->videostream) return video_stream_get_native_window_id(lc->videostream); if (lc->previewstream) return video_stream_get_native_window_id(lc->previewstream); +#endif return 0; }