summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-04 23:37:38 +0100
committerwm4 <wm4@nowhere>2015-02-04 23:37:38 +0100
commit23fd114299591b7a5d358627e0540a9c44bd5991 (patch)
tree212ffaf25f5b62fdcd17c6fd3d619a3ab7ca3da4 /video/out/vo_opengl.c
parent9248f75853f8b316d0aca1cb3960e53df12b1331 (diff)
downloadmpv-23fd114299591b7a5d358627e0540a9c44bd5991.tar.bz2
mpv-23fd114299591b7a5d358627e0540a9c44bd5991.tar.xz
vo_opengl: redraw when pausing while showing an interpolated frame
If smoothmotion is enabled, and the screen shows an interpolated frame the moment you pause, redraw a non-interpolated frame.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r--video/out/vo_opengl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c
index 99c25182b9..a9435eeac2 100644
--- a/video/out/vo_opengl.c
+++ b/video/out/vo_opengl.c
@@ -375,6 +375,12 @@ static int control(struct vo *vo, uint32_t request, void *data)
gl_video_reset(p->renderer);
mpgl_unlock(p->glctx);
return true;
+ case VOCTRL_PAUSE:
+ mpgl_lock(p->glctx);
+ if (gl_video_showing_interpolated_frame(p->renderer))
+ vo->want_redraw = true;
+ mpgl_unlock(p->glctx);
+ return true;
}
mpgl_lock(p->glctx);