mirror of https://github.com/mpv-player/mpv
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:
parent
77ad49411a
commit
19fd67096b
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue