changeset 28676:d5c295360163

Only check for vdp_video_mixer_destroy failure when we actually executed that function.
author reimar
date Mon, 23 Feb 2009 09:22:57 +0000
parents 5cc6dc932017
children cd9aa9b2533a
files libvo/vo_vdpau.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vdpau.c	Mon Feb 23 09:21:57 2009 +0000
+++ b/libvo/vo_vdpau.c	Mon Feb 23 09:22:57 2009 +0000
@@ -427,9 +427,10 @@
         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;
 }