]> sjero.net Git - linphone/commitdiff
Fix compilation when video is not enabled.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 10 Aug 2012 10:49:04 +0000 (12:49 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 10 Aug 2012 10:49:04 +0000 (12:49 +0200)
coreapi/linphonecall.c
coreapi/linphonecore.c

index c5300bf99394dbe37696788d599546772ce0c1f2..74ef5487fddd6ee43b19c9d801adf7d09c0dd145 100644 (file)
@@ -1471,9 +1471,11 @@ void linphone_call_start_media_streams(LinphoneCall *call, bool_t all_inputs_mut
 
 void linphone_call_start_media_streams_for_ice_gathering(LinphoneCall *call){
        audio_stream_prepare_sound(call->audiostream, NULL, NULL);
+#ifdef VIDEO_ENABLED
        if (call->videostream) {
                video_stream_prepare_video(call->videostream);
        }
+#endif
 }
 
 void linphone_call_delete_ice_session(LinphoneCall *call){
index 9ba19020b9f9d2d17bbd38ef4c9991679caeb7fb..4e9198dc28d4837a1202f996c6ff22c899901ea1 100644 (file)
@@ -2503,6 +2503,7 @@ int linphone_core_start_update_call(LinphoneCore *lc, LinphoneCall *call){
 int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const LinphoneCallParams *params){
        int err=0;
        if (params!=NULL){
+#ifdef VIDEO_ENABLED
                if ((call->ice_session != NULL) && (call->videostream != NULL) && !params->has_video) {
                        ice_session_remove_check_list(call->ice_session, call->videostream->ice_check_list);
                        call->videostream->ice_check_list = NULL;
@@ -2521,6 +2522,7 @@ int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const Linpho
                                } else return err;
                        }
                }
+#endif
                err = linphone_core_start_update_call(lc, call);
        }else{
 #ifdef VIDEO_ENABLED
@@ -2616,6 +2618,7 @@ int linphone_core_accept_call_update(LinphoneCore *lc, LinphoneCall *call, const
        update_local_media_description(lc,call);
        if (call->ice_session != NULL) {
                linphone_core_update_ice_from_remote_media_description(call, sal_call_get_remote_media_description(call->op));
+#ifdef VIDEO_ENABLED
                if ((call->ice_session != NULL) &&!ice_session_candidates_gathered(call->ice_session)) {
                        if ((call->params.has_video) && (call->params.has_video != old_has_video)) {
                                linphone_call_init_video_stream(call);
@@ -2626,6 +2629,7 @@ int linphone_core_accept_call_update(LinphoneCore *lc, LinphoneCall *call, const
                                } else return 0;
                        }
                }
+#endif
        }
        linphone_core_start_accept_call_update(lc, call);
        return 0;