# HG changeset patch # User reimar # Date 1370523916 0 # Node ID 7227ed885f0c5f94b271a91579218f5066e668c2 # Parent c922d2550d2036e4b6eaa353723aec7fb35f69d4 Fix expose event redraw to actually redraw the correct frame. diff -r c922d2550d20 -r 7227ed885f0c libvo/vo_vdpau.c --- a/libvo/vo_vdpau.c Thu Jun 06 13:03:50 2013 +0000 +++ b/libvo/vo_vdpau.c Thu Jun 06 13:05:16 2013 +0000 @@ -781,7 +781,7 @@ /* redraw the last visible buffer */ VdpStatus vdp_st; vdp_st = vdp_presentation_queue_display(vdp_flip_queue, - output_surfaces[surface_num], + output_surfaces[(surface_num + NUM_OUTPUT_SURFACES - 1) % NUM_OUTPUT_SURFACES], vo_dwidth, vo_dheight, 0); CHECK_ST_WARNING("Error when calling vdp_presentation_queue_display")