fix compilation of audio-only

This commit is contained in:
Simon Morlat 2010-04-01 15:36:47 +02:00
parent 3cc821540e
commit a4be9bcfe5
2 changed files with 6 additions and 7 deletions

View file

@ -1056,11 +1056,8 @@ 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
linphone_core_set_static_picture(lc, arg2);
return 1;
}
return 0; /* Syntax error */

View file

@ -3089,8 +3089,8 @@ const char *linphone_core_get_video_device(const LinphoneCore *lc){
}
int linphone_core_set_static_picture(LinphoneCore *lc, const char *path) {
#ifdef VIDEO_ENABLED
VideoStream *vs = NULL;
/* Select the video stream from the call in the first place */
if (lc && lc->videostream) {
vs = lc->videostream;
@ -3113,7 +3113,9 @@ int linphone_core_set_static_picture(LinphoneCore *lc, const char *path) {
/* Tell the static image filter to use that image from now on so
that the image will be used next time it has to be read */
ms_static_image_set_default_image(path);
#else
ms_warning("Video support not compiled.");
#endif
return 0;
}