summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-07-16 22:43:40 +0200
committerwm4 <wm4@nowhere>2015-07-16 22:43:40 +0200
commit968bd3df3b57685400c5d000c799d1ec9f7da59a (patch)
treeb5a2c5e94c69c4eb30f1831c701fac69553fbbff /video/out/gl_video.h
parentbb9717a630cd3d1cc0d8aecc03e18c86e49d4d9c (diff)
downloadmpv-968bd3df3b57685400c5d000c799d1ec9f7da59a.tar.bz2
mpv-968bd3df3b57685400c5d000c799d1ec9f7da59a.tar.xz
vo_opengl: refactor queue configuration
Just avoid some code duplication. Also, gl_video_set_options() having a queue size output parameter is weird at best. While I don't appreciate that this commit suddenly requires gl_video.c to deal with vo.c directly in a special case, it's simply the best place to put this function.
Diffstat (limited to 'video/out/gl_video.h')
-rw-r--r--video/out/gl_video.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/gl_video.h b/video/out/gl_video.h
index 4e82215268..840fab211c 100644
--- a/video/out/gl_video.h
+++ b/video/out/gl_video.h
@@ -82,8 +82,7 @@ struct vo_frame;
struct gl_video *gl_video_init(GL *gl, struct mp_log *log, struct mpv_global *g);
void gl_video_uninit(struct gl_video *p);
void gl_video_set_osd_source(struct gl_video *p, struct osd_state *osd);
-void gl_video_set_options(struct gl_video *p, struct gl_video_opts *opts,
- int *queue_size);
+void gl_video_set_options(struct gl_video *p, struct gl_video_opts *opts);
bool gl_video_check_format(struct gl_video *p, int mp_format);
void gl_video_config(struct gl_video *p, struct mp_image_params *params);
void gl_video_set_output_depth(struct gl_video *p, int r, int g, int b);
@@ -110,4 +109,7 @@ bool gl_video_showing_interpolated_frame(struct gl_video *p);
struct gl_hwdec;
void gl_video_set_hwdec(struct gl_video *p, struct gl_hwdec *hwdec);
+struct vo;
+void gl_video_configure_queue(struct gl_video *p, struct vo *vo);
+
#endif