summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-23 09:22:57 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-23 09:22:57 +0000
commit53e6c7777e1862bcc957d7827d0e3264dd2f9853 (patch)
tree438bb64056b712915af74bba9dc378c68f04ca94 /libvo
parent51d0a5fcc1516ff50eb28e756e2175f98fc70354 (diff)
downloadmpv-53e6c7777e1862bcc957d7827d0e3264dd2f9853.tar.bz2
mpv-53e6c7777e1862bcc957d7827d0e3264dd2f9853.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vdpau.c5
1 files 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;
}