diff options
Diffstat (limited to 'video/out/vo_opengl_cb.c')
-rw-r--r-- | video/out/vo_opengl_cb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/vo_opengl_cb.c b/video/out/vo_opengl_cb.c index 9dd5683fc4..6c7916d7f1 100644 --- a/video/out/vo_opengl_cb.c +++ b/video/out/vo_opengl_cb.c @@ -343,11 +343,12 @@ int mpv_opengl_cb_render(struct mpv_opengl_cb_context *ctx, int fbo, int vp[4]) gl_video_unset_gl_state(ctx->renderer); pthread_mutex_lock(&ctx->lock); - if (vo && ctx->queued_frames > 0) + const int left = ctx->queued_frames; + if (vo && left > 0) update(vo->priv); pthread_mutex_unlock(&ctx->lock); - return 0; + return left; } static void draw_image(struct vo *vo, mp_image_t *mpi) |