[MPlayer-cvslog] r28809 - trunk/libvo/vo_vdpau.c

reimar subversion at mplayerhq.hu
Wed Mar 4 20:37:07 CET 2009


Author: reimar
Date: Wed Mar  4 20:37:07 2009
New Revision: 28809

Log:
Make sure all output_surfaces are initialized in preinit.
Patch by Dan Oscarsson [Dan Oscarsson (at) tietoenator com]

Modified:
   trunk/libvo/vo_vdpau.c

Modified: trunk/libvo/vo_vdpau.c
==============================================================================
--- trunk/libvo/vo_vdpau.c	Wed Mar  4 20:12:49 2009	(r28808)
+++ trunk/libvo/vo_vdpau.c	Wed Mar  4 20:37:07 2009	(r28809)
@@ -1010,7 +1010,7 @@ static int preinit(const char *arg)
     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-cvslog mailing list