diff options
author | wm4 <wm4@nowhere> | 2015-10-03 18:20:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-10-03 18:20:16 +0200 |
commit | 291f301c105ca989db6165108fd9dd1c57cde56d (patch) | |
tree | df9f106e86282f2978136dd6820fa76894ccae5f /video/out/vo.c | |
parent | e448e10fd7768c509c528f9291d372fa9760919d (diff) | |
download | mpv-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.c')
-rw-r--r-- | video/out/vo.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/video/out/vo.c b/video/out/vo.c index 5a691a6b9d..12083e4784 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -359,8 +359,7 @@ static void run_reconfig(void *p) void **pp = p; struct vo *vo = pp[0]; struct mp_image_params *params = pp[1]; - int flags = *(int *)pp[2]; - int *ret = pp[3]; + int *ret = pp[2]; struct vo_internal *in = vo->in; @@ -370,7 +369,7 @@ static void run_reconfig(void *p) talloc_free(vo->params); vo->params = talloc_memdup(vo, params, sizeof(*params)); - *ret = vo->driver->reconfig(vo, vo->params, flags); + *ret = vo->driver->reconfig(vo, vo->params); vo->config_ok = *ret >= 0; if (vo->config_ok) { check_vo_caps(vo); @@ -388,10 +387,10 @@ static void run_reconfig(void *p) update_display_fps(vo); } -int vo_reconfig(struct vo *vo, struct mp_image_params *params, int flags) +int vo_reconfig(struct vo *vo, struct mp_image_params *params) { int ret; - void *p[] = {vo, params, &flags, &ret}; + void *p[] = {vo, params, &ret}; mp_dispatch_run(vo->in->dispatch, run_reconfig, p); return ret; } |