From 968bd3df3b57685400c5d000c799d1ec9f7da59a Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 16 Jul 2015 22:43:40 +0200 Subject: 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. --- video/out/gl_video.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'video/out/gl_video.h') 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 -- cgit v1.2.3