summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-12-09 03:08:37 +0200
committerUoti Urpala <uau@mplayer2.org>2011-12-09 03:10:34 +0200
commitfc2d040b2248adaac816b999a90ad452ee1f2be6 (patch)
treea67cc2cc25fc9ff0d16213d822490f2913d6e65d
parent33cac12954b2eb136602ff1a21eaf1888aa5b131 (diff)
downloadmpv-fc2d040b2248adaac816b999a90ad452ee1f2be6.tar.bz2
mpv-fc2d040b2248adaac816b999a90ad452ee1f2be6.tar.xz
vo_vdpau: use new want_redraw mechanism in one more case
-rw-r--r--libvo/vo_vdpau.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c
index 42200d8f5d..f95937c122 100644
--- a/libvo/vo_vdpau.c
+++ b/libvo/vo_vdpau.c
@@ -241,8 +241,6 @@ static uint64_t convert_to_vdptime(struct vo *vo, unsigned int t)
return (int)(t - vc->last_sync_update) * 1000LL + vc->last_vdp_time;
}
-static void flip_page_timed(struct vo *vo, unsigned int pts_us, int duration);
-
static int render_video_to_output_surface(struct vo *vo,
VdpOutputSurface output_surface,
VdpRect *output_rect)
@@ -1784,7 +1782,7 @@ static int control(struct vo *vo, uint32_t request, void *data)
return VO_TRUE;
case VOCTRL_PAUSE:
if (vc->dropped_frame)
- flip_page_timed(vo, 0, -1);
+ vo->want_redraw = true;
return true;
case VOCTRL_QUERY_FORMAT:
return query_format(*(uint32_t *)data);