From 19fd67096bda04469124bd3d40bf437d92175462 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 6 Aug 2014 20:00:39 +0200 Subject: vo_direct3d: allow resizing before video init This can just happen in the time between VO creation, and the first call to vo_reconfig. It seems the recent threading changes exposed this bug. Fixes #986. --- video/out/vo_direct3d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c index 34ddafdd1e..c942c964f5 100644 --- a/video/out/vo_direct3d.c +++ b/video/out/vo_direct3d.c @@ -793,7 +793,7 @@ static bool resize_d3d(d3d_priv *priv) return 0; } - if (!priv->d3d_device) + if (!priv->d3d_device || !priv->image_format) return 1; if (!create_d3d_surfaces(priv)) -- cgit v1.2.3