diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c index 4ee5e66d32..76c92ca339 100644 --- a/video/out/vo_direct3d.c +++ b/video/out/vo_direct3d.c @@ -1333,13 +1333,7 @@ static int reconfig(struct vo *vo, struct mp_image_params *params) priv->have_image = false; - /* w32_common framework call. Creates window on the screen with - * the given coordinates. - */ - if (!vo_w32_config(vo)) { - MP_VERBOSE(priv, "Creating window failed.\n"); - return VO_ERROR; - } + vo_w32_config(vo); if ((priv->image_format != params->imgfmt) || (priv->src_width != params->w) diff --git a/video/out/w32_common.c b/video/out/w32_common.c index c0396b2fa2..266dfbc69d 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -1088,11 +1088,10 @@ static void gui_thread_reconfig(void *ptr) } // Resize the window. On the first call, it's also made visible. -int vo_w32_config(struct vo *vo) +void vo_w32_config(struct vo *vo) { struct vo_w32_state *w32 = vo->w32; mp_dispatch_run(w32->dispatch, gui_thread_reconfig, w32); - return 0; } static void thread_disable_ime(void) diff --git a/video/out/w32_common.h b/video/out/w32_common.h index 094660a34f..88cc664bf2 100644 --- a/video/out/w32_common.h +++ b/video/out/w32_common.h @@ -29,7 +29,7 @@ struct vo; int vo_w32_init(struct vo *vo); void vo_w32_uninit(struct vo *vo); int vo_w32_control(struct vo *vo, int *events, int request, void *arg); -int vo_w32_config(struct vo *vo); +void vo_w32_config(struct vo *vo); HWND vo_w32_hwnd(struct vo *vo); void vo_w32_run_on_thread(struct vo *vo, void (*cb)(void *ctx), void *ctx);