Only include Xv headers if server supports it

Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
Yaakov Selkowitz 2012-03-28 00:06:32 -05:00
parent 02918fd534
commit 668223a665
2 changed files with 6 additions and 0 deletions

View File

@ -5,8 +5,10 @@
#include "xf86Cursor.h" #include "xf86Cursor.h"
#ifdef XvExtension
#include "xf86xv.h" #include "xf86xv.h"
#include <X11/extensions/Xv.h> #include <X11/extensions/Xv.h>
#endif
#include <string.h> #include <string.h>
/* Supported chipsets */ /* Supported chipsets */
@ -57,7 +59,9 @@ typedef struct dummyRec
Bool screenSaver; Bool screenSaver;
Bool video; Bool video;
#ifdef XvExtension
XF86VideoAdaptorPtr overlayAdaptor; XF86VideoAdaptorPtr overlayAdaptor;
#endif
int overlay; int overlay;
int overlay_offset; int overlay_offset;
int videoKey; int videoKey;

View File

@ -32,8 +32,10 @@
#include "picturestr.h" #include "picturestr.h"
#ifdef XvExtension
#include "xf86xv.h" #include "xf86xv.h"
#include <X11/extensions/Xv.h> #include <X11/extensions/Xv.h>
#endif
/* /*
* Driver data structures. * Driver data structures.