From a4c0e254a3f999ec8a3ce9f142b7b961d3d00f43 Mon Sep 17 00:00:00 2001 From: xylosper Date: Fri, 9 Jan 2015 05:24:57 +0900 Subject: vo_opengl_cb: make mpv_opengl_cb_render() return left frames Instead of error code which was not helpful because it's always 0, mpv_opengl_cb_render() returns the number of left frames in the frame queue now. --- libmpv/opengl_cb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpv') diff --git a/libmpv/opengl_cb.h b/libmpv/opengl_cb.h index 042a5a46aa..bf6dfb4136 100644 --- a/libmpv/opengl_cb.h +++ b/libmpv/opengl_cb.h @@ -191,7 +191,7 @@ int mpv_opengl_cb_init_gl(mpv_opengl_cb_context *ctx, const char *exts, * image - the renderer will flip it before setting the viewport * (typically you want to flip the image if you are rendering * directly to the main framebuffer). - * @return error code + * @return the number of left frames in the internal queue to be rendered */ int mpv_opengl_cb_render(mpv_opengl_cb_context *ctx, int fbo, int vp[4]); -- cgit v1.2.3