mirror of
https://github.com/mpv-player/mpv
synced 2025-04-27 05:39:21 +00:00
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
This commit is contained in:
parent
51d0a5fcc1
commit
53e6c7777e
@ -427,9 +427,10 @@ static void free_video_specific(void) {
|
|||||||
surface_render[i].surface = VDP_INVALID_HANDLE;
|
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);
|
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;
|
video_mixer = VDP_INVALID_HANDLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user