diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-11-17 23:22:10 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-11-17 23:22:48 +0200 |
commit | e5bcd70bc5b0557635ae51c7093f0e887493d4ba (patch) | |
tree | 6e2def5df765e56d642c928080a48e8ba5939945 /libvo | |
parent | 34279a8ce3c02bb744c635bfa9650494a68a333b (diff) | |
download | mpv-e5bcd70bc5b0557635ae51c7093f0e887493d4ba.tar.bz2 mpv-e5bcd70bc5b0557635ae51c7093f0e887493d4ba.tar.xz |
vo_vdpau: Check return value when setting video mixer features
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_vdpau.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index a06c421301..0132f2c396 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -651,9 +651,12 @@ static int create_vdp_mixer(struct vo *vo, VdpChromaType vdp_chroma_type) feature_enables[i] = VDP_TRUE; if (vc->deint < 3) feature_enables[0] = VDP_FALSE; - if (feature_count) - vdp->video_mixer_set_feature_enables(vc->video_mixer, feature_count, - features, feature_enables); + if (feature_count) { + vdp_st = vdp->video_mixer_set_feature_enables(vc->video_mixer, + feature_count, features, + feature_enables); + CHECK_ST_WARNING("Error calling vdp_video_mixer_set_feature_enables"); + } if (vc->denoise) SET_VIDEO_ATTR(NOISE_REDUCTION_LEVEL, float, vc->denoise); if (vc->sharpen) |