[PATCH] Perform XV initialization only if the server supports it.
Julien Cristau
jcristau at debian.org
Mon Nov 8 05:35:51 PST 2010
On Mon, Nov 8, 2010 at 14:24:46 +0100, Cyril Brulebois wrote:
> 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");
>
Reviewed-by: Julien Cristau <jcristau at debian.org>
Cheers,
Julien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101108/e8881b3f/attachment.pgp>
More information about the xorg-devel
mailing list