mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 19:28:53 +00:00
Enable building the code even if SDL is not present (similarly,
SDL is also detected at runtime). Now we should be able to stream video even without a rendering device (useful for remote monitoring). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94822 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#ifndef CONSOLE_VIDEO_H
|
||||
#define CONSOLE_VIDEO_H
|
||||
|
||||
#if !defined(HAVE_VIDEO_CONSOLE) || !defined(HAVE_FFMPEG) || !defined(HAVE_SDL)
|
||||
#if !defined(HAVE_VIDEO_CONSOLE) || !defined(HAVE_FFMPEG)
|
||||
#define CONSOLE_VIDEO_CMDS \
|
||||
"console {device}"
|
||||
#else
|
||||
@@ -37,16 +37,6 @@
|
||||
#include <ffmpeg/swscale.h> /* requires a recent ffmpeg */
|
||||
#endif
|
||||
|
||||
#include <SDL/SDL.h>
|
||||
#ifdef HAVE_SDL_IMAGE
|
||||
#include <SDL/SDL_image.h> /* for loading images */
|
||||
#endif
|
||||
#ifdef HAVE_SDL_TTF
|
||||
#include <SDL/SDL_ttf.h> /* render text on sdl surfaces */
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#define CONSOLE_VIDEO_CMDS \
|
||||
"console {videodevice|videocodec|sendvideo" \
|
||||
"|video_size|bitrate|fps|qmin" \
|
||||
|
Reference in New Issue
Block a user