mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user