From e5bcd70bc5b0557635ae51c7093f0e887493d4ba Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 17 Nov 2009 23:22:10 +0200 Subject: vo_vdpau: Check return value when setting video mixer features --- libvo/vo_vdpau.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libvo') 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) -- cgit v1.2.3