From 53e6c7777e1862bcc957d7827d0e3264dd2f9853 Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 23 Feb 2009 09:22:57 +0000 Subject: [PATCH] Only check for vdp_video_mixer_destroy failure when we actually executed that function. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28711 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_vdpau.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index a1cd8774a7..e60c36c3ab 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -427,9 +427,10 @@ static void free_video_specific(void) { surface_render[i].surface = VDP_INVALID_HANDLE; } - if (video_mixer != VDP_INVALID_HANDLE) + if (video_mixer != VDP_INVALID_HANDLE) { vdp_st = vdp_video_mixer_destroy(video_mixer); - CHECK_ST_WARNING("Error when calling vdp_video_mixer_destroy") + CHECK_ST_WARNING("Error when calling vdp_video_mixer_destroy") + } video_mixer = VDP_INVALID_HANDLE; } -- 2.11.4.GIT