diff options
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; } |