Mercurial > mplayer.hg
changeset 28936:fd9de1e70d47
Move initialisation of deint_surfaces[] to free_video_specific().
author | cehoyos |
---|---|
date | Sun, 15 Mar 2009 22:19:05 +0000 |
parents | 521e61715851 |
children | f2abbc7bb8f0 |
files | libvo/vo_vdpau.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_vdpau.c Sun Mar 15 21:48:52 2009 +0000 +++ b/libvo/vo_vdpau.c Sun Mar 15 22:19:05 2009 +0000 @@ -447,6 +447,9 @@ decoder = VDP_INVALID_HANDLE; decoder_max_refs = -1; + for (i = 0; i < 3; i++) + deint_surfaces[i] = VDP_INVALID_HANDLE; + for (i = 0; i < MAX_VIDEO_SURFACES; i++) { if (surface_render[i].surface != VDP_INVALID_HANDLE) { vdp_st = vdp_video_surface_destroy(surface_render[i].surface); @@ -474,7 +477,7 @@ XSetWindowAttributes xswa; XWindowAttributes attribs; unsigned long xswamask; - int depth, i; + int depth; #ifdef CONFIG_XF86VM int vm = flags & VOFLAG_MODESWITCHING; @@ -543,9 +546,6 @@ vid_surface_num = -1; resize(); - for (i = 0; i < 3; i++) - deint_surfaces[i] = VDP_INVALID_HANDLE; - return 0; }