From 82093764684a4c11f9ad0d8c12bf2e34758ea0fe Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Fri, 11 Aug 2017 04:53:25 +0200 Subject: vo_opengl: make ra_fns.timer_create optional --- video/out/opengl/utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video/out/opengl/utils.c') diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c index a0174e8063..64421b73a8 100644 --- a/video/out/opengl/utils.c +++ b/video/out/opengl/utils.c @@ -134,6 +134,9 @@ struct timer_pool { struct timer_pool *timer_pool_create(struct ra *ra) { + if (!ra->fns->timer_create) + return NULL; + ra_timer *timer = ra->fns->timer_create(ra); if (!timer) return NULL; -- cgit v1.2.3