From 9582489a45b097c0ba4669669b3c2f5c8073cf43 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 11 Jul 2013 14:38:51 +0200 Subject: [PATCH] Fix android compilation --- coreapi/linphonecall.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 01dbaf8db..e2a305fe5 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -2507,20 +2507,24 @@ void linphone_call_zoom_video(LinphoneCall* call, float zoom_factor, float* cx, } MSVideoSize linphone_call_get_sent_video_size(const LinphoneCall *call) { - VideoStream *vstream = call->videostream; MSVideoSize vsize = MS_VIDEO_SIZE_UNKNOWN; +#ifdef VIDEO_ENABLED + VideoStream *vstream = call->videostream; if (vstream != NULL) { vsize = video_stream_get_sent_video_size(vstream); } +#endif return vsize; } MSVideoSize linphone_call_get_received_video_size(const LinphoneCall *call) { - VideoStream *vstream = call->videostream; MSVideoSize vsize = MS_VIDEO_SIZE_UNKNOWN; +#ifdef VIDEO_ENABLED + VideoStream *vstream = call->videostream; if (vstream != NULL) { vsize = video_stream_get_received_video_size(vstream); } +#endif return vsize; }