summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl.c
diff options
context:
space:
mode:
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 e409eaa18d..43b2b9e04b 100644
--- a/video/out/vo_opengl.c
+++ b/video/out/vo_opengl.c
@@ -184,6 +184,12 @@ static void draw_image_timed(struct vo *vo, mp_image_t *mpi,
if (mpi)
gl_video_upload_image(p->renderer, mpi);
+
+ if (p->glctx->start_frame && !p->glctx->start_frame(p->glctx)) {
+ mpgl_unlock(p->glctx);
+ return;
+ }
+
gl_video_render_frame(p->renderer, 0, t);
// The playloop calls this last before waiting some time until it decides