Mercurial > mplayer.hg
diff libvo/vo_vdpau.c @ 36251:e2073bd749cf
Ensure surfaces are cleared after resize.
author | reimar |
---|---|
date | Sat, 15 Jun 2013 19:59:24 +0000 |
parents | cdb0cc4accb9 |
children | 4e5239ebd43d |
line wrap: on
line diff
--- 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();