[PATCH] Perform XV initialization only if the server supports it.

Cyril Brulebois kibi at debian.org
Mon Nov 8 05:24:46 PST 2010


Use XV from server's xorg-server.h to determine whether to perform XV
initialization.

Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
 src/fbdev.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/fbdev.c b/src/fbdev.c
index 99672d3..7e12b1d 100644
--- a/src/fbdev.c
+++ b/src/fbdev.c
@@ -896,6 +896,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
 	fPtr->CloseScreen = pScreen->CloseScreen;
 	pScreen->CloseScreen = FBDevCloseScreen;
 
+#if XV
 	{
 	    XF86VideoAdaptorPtr *ptr;
 
@@ -904,6 +905,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
 		xf86XVScreenInit(pScreen,ptr,n);
 	    }
 	}
+#endif
 
 	TRACE_EXIT("FBDevScreenInit");
 
-- 
1.7.2.3



More information about the xorg-devel mailing list