Mercurial > mplayer.hg
changeset 28774:95123b577ad0
Make sure all output_surfaces are initialized in preinit.
Patch by Dan Oscarsson [Dan Oscarsson (at) tietoenator com]
author | reimar |
---|---|
date | Wed, 04 Mar 2009 19:37:07 +0000 |
parents | 8a0785c19f48 |
children | b7100293c908 |
files | libvo/vo_vdpau.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_vdpau.c Wed Mar 04 19:12:49 2009 +0000 +++ b/libvo/vo_vdpau.c Wed Mar 04 19:37:07 2009 +0000 @@ -1010,7 +1010,7 @@ for (i = 0; i < MAX_VIDEO_SURFACES; i++) surface_render[i].surface = VDP_INVALID_HANDLE; video_mixer = VDP_INVALID_HANDLE; - for (i = 0; i < NUM_OUTPUT_SURFACES; i++) + for (i = 0; i <= NUM_OUTPUT_SURFACES; i++) output_surfaces[i] = VDP_INVALID_HANDLE; vdp_flip_queue = VDP_INVALID_HANDLE; output_surface_width = output_surface_height = -1;