]> sjero.net Git - linphone/commitdiff
fix disable-video build
authorJehan Monnier <jehan.monnier@linphone.org>
Tue, 2 Oct 2012 08:29:55 +0000 (10:29 +0200)
committerJehan Monnier <jehan.monnier@linphone.org>
Tue, 2 Oct 2012 08:29:55 +0000 (10:29 +0200)
coreapi/linphonecore.c

index b55c08ece00194a261cc0f1b0b8e0797d0f8e091..93c1a8cf3d6642ae53b62e4f4dd64282d17e9ab0 100644 (file)
@@ -2659,7 +2659,9 @@ int linphone_core_start_accept_call_update(LinphoneCore *lc, LinphoneCall *call)
  * @return 0 if sucessful, -1 otherwise (actually when this function call is performed outside ot #LinphoneCallUpdatedByRemote state).
 **/
 int linphone_core_accept_call_update(LinphoneCore *lc, LinphoneCall *call, const LinphoneCallParams *params){
+#ifdef VIDEO_ENABLED
        bool_t old_has_video = call->params.has_video;
+#endif
        if (call->state!=LinphoneCallUpdatedByRemote){
                ms_error("linphone_core_accept_update(): invalid state %s to call this function.",
                         linphone_call_state_to_string(call->state));