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

reimar subversion at mplayerhq.hu
Sat Jun 15 21:59:24 CEST 2013


Author: reimar
Date: Sat Jun 15 21:59:24 2013
New Revision: 36347

Log:
Ensure surfaces are cleared after resize.

Modified:
   trunk/libvo/vo_vdpau.c

Modified: trunk/libvo/vo_vdpau.c
==============================================================================
--- trunk/libvo/vo_vdpau.c	Sat Jun 15 18:11:47 2013	(r36346)
+++ trunk/libvo/vo_vdpau.c	Sat Jun 15 21:59:24 2013	(r36347)
@@ -326,6 +326,12 @@ static void resize(void)
             mp_msg(MSGT_VO, MSGL_DBG2, "OUT CREATE: %u\n", output_surfaces[i]);
         }
     }
+    // clear surfaces
+    for (i = 0; i <= NUM_OUTPUT_SURFACES; i++) {
+        vdp_output_surface_render_output_surface(output_surfaces[i], NULL,
+                                                 VDP_INVALID_HANDLE, NULL,
+                                                 NULL, NULL, VDP_OUTPUT_SURFACE_RENDER_ROTATE_0);
+    }
     video_to_output_surface();
     if (visible_buf) {
         draw_eosd();


More information about the MPlayer-cvslog mailing list