fix compilation with --disable-video

This commit is contained in:
Simon Morlat 2010-04-01 14:13:20 +02:00
parent 798cec5c43
commit 3cc821540e
2 changed files with 6 additions and 1 deletions

View file

@ -1056,7 +1056,11 @@ lpc_cmd_staticpic(LinphoneCore *lc, char *args)
}
if (strcmp(arg1, "set")==0 && arg2) {
#ifdef VIDEO_ENABLED
return linphone_core_set_static_picture(lc, arg2);
#else
linphonec_out("Sorry, linphonec was compiled without video capabilities.\n");
#endif
}
return 0; /* Syntax error */
@ -1632,6 +1636,7 @@ static int lpc_cmd_speak(LinphoneCore *lc, char *args){
char *wavfile;
int status;
FILE *file;
if (!args) return 0;
memset(voice,0,sizeof(voice));
sscanf(args,"%s63",voice);

View file

@ -378,8 +378,8 @@ static void register_failure(SalOp *op, SalError error, SalReason reason, const
}
static void vfu_request(SalOp *op){
LinphoneCore *lc=(LinphoneCore *)sal_get_user_pointer(sal_op_get_sal(op));
#ifdef VIDEO_ENABLED
LinphoneCore *lc=(LinphoneCore *)sal_get_user_pointer(sal_op_get_sal(op));
if (lc->videostream)
video_stream_send_vfu(lc->videostream);
#endif