From b92fd602ced5f71e843ef87edf3de6cf68b05b12 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 31 Oct 2015 12:52:02 +0100 Subject: vo_direct3d: fix operation Regression since commit 93db4233. I think the bit that was forgotten here was to remove the vo_w32_config() return value completely. The VO failed to init because that function always returned 0. This commit removes these bits and fixes the VO. Fixes #2434. --- video/out/vo_direct3d.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'video/out/vo_direct3d.c') 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) -- cgit v1.2.3