diff options
author | xylosper <darklin20@gmail.com> | 2015-01-09 05:24:57 +0900 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-08 21:32:22 +0100 |
commit | a4c0e254a3f999ec8a3ce9f142b7b961d3d00f43 (patch) | |
tree | a5c311b40733a7be42026bdf177cda0c13ef5092 /libmpv/opengl_cb.h | |
parent | e66acd52af0d453a6a8e482a92e4808196f74855 (diff) | |
download | mpv-a4c0e254a3f999ec8a3ce9f142b7b961d3d00f43.tar.bz2 mpv-a4c0e254a3f999ec8a3ce9f142b7b961d3d00f43.tar.xz |
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.
Diffstat (limited to 'libmpv/opengl_cb.h')
-rw-r--r-- | libmpv/opengl_cb.h | 2 |
1 files changed, 1 insertions, 1 deletions
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]); |