Mercurial > mplayer.hg
comparison libvo/vo_vdpau.c @ 36206:7227ed885f0c
Fix expose event redraw to actually redraw the correct frame.
author | reimar |
---|---|
date | Thu, 06 Jun 2013 13:05:16 +0000 |
parents | c922d2550d20 |
children | 658a648d3301 |
comparison
equal
deleted
inserted
replaced
36205:c922d2550d20 | 36206:7227ed885f0c |
---|---|
779 /* did we already draw a buffer */ | 779 /* did we already draw a buffer */ |
780 if (visible_buf) { | 780 if (visible_buf) { |
781 /* redraw the last visible buffer */ | 781 /* redraw the last visible buffer */ |
782 VdpStatus vdp_st; | 782 VdpStatus vdp_st; |
783 vdp_st = vdp_presentation_queue_display(vdp_flip_queue, | 783 vdp_st = vdp_presentation_queue_display(vdp_flip_queue, |
784 output_surfaces[surface_num], | 784 output_surfaces[(surface_num + NUM_OUTPUT_SURFACES - 1) % NUM_OUTPUT_SURFACES], |
785 vo_dwidth, vo_dheight, | 785 vo_dwidth, vo_dheight, |
786 0); | 786 0); |
787 CHECK_ST_WARNING("Error when calling vdp_presentation_queue_display") | 787 CHECK_ST_WARNING("Error when calling vdp_presentation_queue_display") |
788 } | 788 } |
789 } | 789 } |