summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-29 01:32:30 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-11-29 05:31:38 +0200
commitdbd1ab182ecf794fa576ffbda49e666f2e3b8bae (patch)
tree6f76d76f2d67d096255983750b2402260e26fbbc /libvo
parent1dba61a67063fac2c6f02dc31ab84e61ff279617 (diff)
downloadmpv-dbd1ab182ecf794fa576ffbda49e666f2e3b8bae.tar.bz2
mpv-dbd1ab182ecf794fa576ffbda49e666f2e3b8bae.tar.xz
vo_vdpau.c: Fix compilation with old libvdpau versions
Misplaced #endif broke compilation with old libvdpau versions that lack VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1 #define. Also add missing space to the text in related mp_msg() call.
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vdpau.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c
index 0132f2c396..79465748c5 100644
--- a/libvo/vo_vdpau.c
+++ b/libvo/vo_vdpau.c
@@ -623,7 +623,7 @@ static int create_vdp_mixer(struct vo *vo, VdpChromaType vdp_chroma_type)
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?)"
+ 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 =
@@ -638,8 +638,8 @@ 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,
VDP_NUM_MIXER_PARAMETER,