Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
36250:7e4a8748cf9a | 36251:e2073bd749cf |
---|---|
323 output_surface_width, output_surface_height, | 323 output_surface_width, output_surface_height, |
324 &output_surfaces[i]); | 324 &output_surfaces[i]); |
325 CHECK_ST_WARNING("Error when calling vdp_output_surface_create") | 325 CHECK_ST_WARNING("Error when calling vdp_output_surface_create") |
326 mp_msg(MSGT_VO, MSGL_DBG2, "OUT CREATE: %u\n", output_surfaces[i]); | 326 mp_msg(MSGT_VO, MSGL_DBG2, "OUT CREATE: %u\n", output_surfaces[i]); |
327 } | 327 } |
328 } | |
329 // clear surfaces | |
330 for (i = 0; i <= NUM_OUTPUT_SURFACES; i++) { | |
331 vdp_output_surface_render_output_surface(output_surfaces[i], NULL, | |
332 VDP_INVALID_HANDLE, NULL, | |
333 NULL, NULL, VDP_OUTPUT_SURFACE_RENDER_ROTATE_0); | |
328 } | 334 } |
329 video_to_output_surface(); | 335 video_to_output_surface(); |
330 if (visible_buf) { | 336 if (visible_buf) { |
331 draw_eosd(); | 337 draw_eosd(); |
332 draw_osd(); | 338 draw_osd(); |