mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
fix compilation with --disable-video
This commit is contained in:
parent
798cec5c43
commit
3cc821540e
2 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue