# HG changeset patch # User reimar # Date 1371326364 0 # Node ID e2073bd749cf8442183e3544dd74d9a25a966c29 # Parent 7e4a8748cf9ac1ed41d34bc6654a1a5a8a34198e Ensure surfaces are cleared after resize. diff -r 7e4a8748cf9a -r e2073bd749cf libvo/vo_vdpau.c --- a/libvo/vo_vdpau.c Sat Jun 15 16:11:47 2013 +0000 +++ b/libvo/vo_vdpau.c Sat Jun 15 19:59:24 2013 +0000 @@ -326,6 +326,12 @@ 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();