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.
This commit is contained in:
wm4 2014-08-06 20:00:39 +02:00
parent 77ad49411a
commit 19fd67096b
1 changed files with 1 additions and 1 deletions

View File

@ -793,7 +793,7 @@ static bool resize_d3d(d3d_priv *priv)
return 0; return 0;
} }
if (!priv->d3d_device) if (!priv->d3d_device || !priv->image_format)
return 1; return 1;
if (!create_d3d_surfaces(priv)) if (!create_d3d_surfaces(priv))