summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-03 18:20:16 +0200
committerwm4 <wm4@nowhere>2015-10-03 18:20:16 +0200
commit291f301c105ca989db6165108fd9dd1c57cde56d (patch)
treedf9f106e86282f2978136dd6820fa76894ccae5f /video/out/vo.h
parente448e10fd7768c509c528f9291d372fa9760919d (diff)
downloadmpv-291f301c105ca989db6165108fd9dd1c57cde56d.tar.bz2
mpv-291f301c105ca989db6165108fd9dd1c57cde56d.tar.xz
video/out: remove an unused parameter
This parameter has been unused for years (the last flag was removed in commit d658b115). Get rid of it. This affects the general VO API, as well as the vo_opengl backend API, so it touches a lot of files. The VOFLAGs are still used to control OpenGL context creation, so move them to the OpenGL backend code.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 81ca375270..cc280987a5 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -131,13 +131,6 @@ struct voctrl_get_equalizer_args {
#define VO_NOTIMPL -3
enum {
- VOFLAG_GLES = 1 << 0, // Hint to prefer GLES2 if possible
- VOFLAG_GL_DEBUG = 1 << 1, // Hint to request debug OpenGL context
- VOFLAG_ALPHA = 1 << 2, // Hint to request alpha framebuffer
- VOFLAG_SW = 1 << 3, // Hint to accept a software GL renderer
-};
-
-enum {
// VO does handle mp_image_params.rotate in 90 degree steps
VO_CAP_ROTATE90 = 1 << 0,
// VO does framedrop itself (vo_vdpau). Untimed/encoding VOs never drop.
@@ -224,10 +217,9 @@ struct vo_driver {
/*
* Initialize or reconfigure the display driver.
* params: video parameters, like pixel format and frame size
- * flags: combination of VOFLAG_ values
* returns: < 0 on error, >= 0 on success
*/
- int (*reconfig)(struct vo *vo, struct mp_image_params *params, int flags);
+ int (*reconfig)(struct vo *vo, struct mp_image_params *params);
/*
* Control interface
@@ -326,7 +318,7 @@ struct vo {
struct mpv_global;
struct vo *init_best_video_out(struct mpv_global *global, struct vo_extra *ex);
-int vo_reconfig(struct vo *vo, struct mp_image_params *p, int flags);
+int vo_reconfig(struct vo *vo, struct mp_image_params *p);
int vo_control(struct vo *vo, uint32_t request, void *data);
bool vo_is_ready_for_frame(struct vo *vo, int64_t next_pts);