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.
This commit is contained in:
xylosper
2015-01-09 05:24:57 +09:00
committed by wm4
parent e66acd52af
commit a4c0e254a3
2 changed files with 4 additions and 3 deletions

View File

@@ -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]);