[MPlayer-dev-eng] minor bug in vo_vdpau
Dan Oscarsson
Dan.Oscarsson at tietoenator.com
Wed Mar 4 20:18:43 CET 2009
When tracing display queue problems I noted that an invalid
vdp_output_surface_destroy is done in resize. This is due to a missed
initialisation in preinit.
Easy to fix. Patch below.
Dan
--- vo_vdpau.c.org 2009-03-04 20:14:35.000000000 +0100
+++ vo_vdpau.c 2009-03-04 20:15:06.000000000 +0100
@@ -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;
More information about the MPlayer-dev-eng
mailing list