# HG changeset patch # User uau # Date 1234829355 0 # Node ID 7d42a45c225d591eafcf50a19dc5690243dc1f90 # Parent 239a2ceda4ff547d163ed1366890a3c8f082bc43 Fix compilation without VDPAU The commit adding vo_vdpau had two bugs that broke compilation when VDPAU was not enabled. - video_out.c used "#ifdef CONFIG_VDPAU", but it's always set to 0 or 1 - In configure, MPEG1_VDPAU_DECODER was dropped from the list of libavcodec codecs to disable when moving VDPAU-related ones from the always-disabled list to a conditinal one. diff -r 239a2ceda4ff -r 7d42a45c225d configure --- a/configure Mon Feb 16 23:56:19 2009 +0000 +++ b/configure Tue Feb 17 00:09:15 2009 +0000 @@ -4311,7 +4311,7 @@ else def_vdpau='#define CONFIG_VDPAU 0' _novomodules="vdpau $_novomodules" - _libavdecoders=`echo $_libavdecoders | sed -e s/MPEG_VDPAU_DECODER// -e s/H264_VDPAU_DECODER// -e s/WMV3_VDPAU_DECODER// -e s/VC1_VDPAU_DECODER//` + _libavdecoders=`echo $_libavdecoders | sed -e s/MPEG_VDPAU_DECODER// -e s/MPEG1_VDPAU_DECODER// -e s/H264_VDPAU_DECODER// -e s/WMV3_VDPAU_DECODER// -e s/VC1_VDPAU_DECODER//` fi echores "$_vdpau" diff -r 239a2ceda4ff -r 7d42a45c225d libvo/video_out.c --- a/libvo/video_out.c Mon Feb 16 23:56:19 2009 +0000 +++ b/libvo/video_out.c Tue Feb 17 00:09:15 2009 +0000 @@ -170,7 +170,7 @@ #ifdef CONFIG_3DFX &video_out_3dfx, #endif -#ifdef CONFIG_VDPAU +#if CONFIG_VDPAU &video_out_vdpau, #endif #ifdef CONFIG_XV