1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-11 17:37:23 +00:00

fix to compile when SHM is disabled

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2970 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2001-11-18 14:09:56 +00:00
parent 2a3e9d86da
commit 15ea5ffcfc

View File

@ -27,7 +27,7 @@ LIBVO_EXTERN( x11 )
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xutil.h> #include <X11/Xutil.h>
#include <X11/extensions/XShm.h> //#include <X11/extensions/XShm.h>
#ifdef HAVE_XF86VM #ifdef HAVE_XF86VM
#include <X11/extensions/xf86vmode.h> #include <X11/extensions/xf86vmode.h>
#endif #endif
@ -74,6 +74,8 @@ static int X_already_started=0;
//static int vo_dwidth,vo_dheight; //static int vo_dwidth,vo_dheight;
static int Flip_Flag;
#define SH_MEM #define SH_MEM
#ifdef SH_MEM #ifdef SH_MEM
@ -92,8 +94,6 @@ static XShmSegmentInfo Shminfo[1];
static int gXErrorFlag; static int gXErrorFlag;
static int CompletionType=-1; static int CompletionType=-1;
static int Flip_Flag;
static void InstallXErrorHandler() static void InstallXErrorHandler()
{ {
//XSetErrorHandler( HandleXError ); //XSetErrorHandler( HandleXError );