1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 05:15:12 +00:00

vdpau: drop support for old versions

Since I dropped the hack to support older libvdpau versions (without
MPEG4 / hqscaling features) from the FFmpeg version used in the build
repo it's better to disable those libvdpau versions in MPlayer
too. Change the configure check to require a newer libvdpau version,
and drop compatibility code in vo_vdpau.c.
This commit is contained in:
Uoti Urpala 2010-05-11 03:57:04 +03:00
parent b26d8828d4
commit 0ae292fbcb
2 changed files with 1 additions and 6 deletions

2
configure vendored
View File

@ -4326,7 +4326,7 @@ if test "$_vdpau" = auto ; then
#include <vdpau/vdpau_x11.h>
int main(void) {
(void) vdp_device_create_x11(0, 0, 0, 0);
return VDP_VIDEO_MIXER_ATTRIBUTE_SKIP_CHROMA_DEINTERLACE;}
return VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1; }
EOF
cc_check -lvdpau && _vdpau=yes
fi

View File

@ -626,10 +626,6 @@ static int create_vdp_mixer(struct vo *vo, VdpChromaType vdp_chroma_type)
if (vc->sharpen)
features[feature_count++] = VDP_VIDEO_MIXER_FEATURE_SHARPNESS;
if (vc->hqscaling) {
#ifndef VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1
mp_msg(MSGT_VO, MSGL_ERR, "[vdpau] MPlayer was compiled with (old?) "
"libvdpau headers with no support for requested hqscaling.\n");
#else
VdpVideoMixerFeature hqscaling_feature =
VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1 + vc->hqscaling-1;
VdpBool hqscaling_available;
@ -642,7 +638,6 @@ static int create_vdp_mixer(struct vo *vo, VdpChromaType vdp_chroma_type)
else
mp_msg(MSGT_VO, MSGL_ERR, "[vdpau] Your hardware or VDPAU "
"library does not support requested hqscaling.\n");
#endif
}
vdp_st = vdp->video_mixer_create(vc->vdp_device, feature_count, features,