From bd9c0a10e577e7f839aabc27af6e186a9ba0cdaa Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 20 Jul 2016 20:42:30 +0200 Subject: vo_opengl: allow backends to provide callbacks for custom event loops Until now, this has been either handled over vo.event_fd (which should go away), or by putting event handling on a separate thread. The backends which do the latter do it for a reason and won't need this, but X11 and Wayland will, in order to get rid of event_fd. --- video/out/vo_drm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'video/out/vo_drm.c') diff --git a/video/out/vo_drm.c b/video/out/vo_drm.c index 5a7c613cad..f03f50358d 100644 --- a/video/out/vo_drm.c +++ b/video/out/vo_drm.c @@ -253,9 +253,7 @@ static void acquire_vt(void *data) crtc_setup(vo); } - - -static int wait_events(struct vo *vo, int64_t until_time_us) +static void wait_events(struct vo *vo, int64_t until_time_us) { struct priv *p = vo->priv; if (p->vt_switcher_active) { @@ -263,7 +261,6 @@ static int wait_events(struct vo *vo, int64_t until_time_us) int timeout_ms = MPCLAMP((wait_us + 500) / 1000, 0, 10000); vt_switcher_poll(&p->vt_switcher, timeout_ms); } - return 0; } static void wakeup(struct vo *vo) -- cgit v1.2.3