From a743fef837bcab206b1e576db7e7a64b02890449 Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Tue, 5 Dec 2017 08:26:24 +0000 Subject: vo: add support for externally driven renderloop and make wayland use it Fixes display-sync (though if you change virtual desktops you'll need to seek to re-enable display-sync) partially under wayland. As an advantage, rendering is completely disabled if you change desktops or alt+tab so you lose no performance if you leave mpv running elsewhere as long as it isn't visible. This could also be ported to other VOs which supports it. --- video/out/vo_gpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo_gpu.c') diff --git a/video/out/vo_gpu.c b/video/out/vo_gpu.c index 6a971dd94b..95318d36df 100644 --- a/video/out/vo_gpu.c +++ b/video/out/vo_gpu.c @@ -203,7 +203,7 @@ static int control(struct vo *vo, uint32_t request, void *data) case VOCTRL_PAUSE: if (gl_video_showing_interpolated_frame(p->renderer)) vo->want_redraw = true; - return true; + break; case VOCTRL_PERFORMANCE_DATA: gl_video_perfdata(p->renderer, (struct voctrl_performance_data *)data); return true; -- cgit v1.2.3