diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-06-26 15:34:40 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-06-26 15:34:40 +0200 |
commit | 06a0e184359b75c3534bb88b08233efa53be8397 (patch) | |
tree | cc0afadba679fdad8a23964945d3f827f5973b1b /libavutil/hwcontext_dxva2.c | |
parent | 85da4f92580d01cc67061ba90aca28d878868a80 (diff) | |
download | ffmpeg-06a0e184359b75c3534bb88b08233efa53be8397.tar.gz |
hwcontext_dxva2: Use GetDesktopWindow instead of GetShellWindow
Improves compatibility with some MinGW variants,
see 771537edcf703434161c100e6898891546d1d4b3
Diffstat (limited to 'libavutil/hwcontext_dxva2.c')
-rw-r--r-- | libavutil/hwcontext_dxva2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/hwcontext_dxva2.c b/libavutil/hwcontext_dxva2.c index d26f906717..e79254bb34 100644 --- a/libavutil/hwcontext_dxva2.c +++ b/libavutil/hwcontext_dxva2.c @@ -390,7 +390,7 @@ static int dxva2_device_create(AVHWDeviceContext *ctx, const char *device, d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; d3dpp.Flags = D3DPRESENTFLAG_VIDEO; - hr = IDirect3D9_CreateDevice(priv->d3d9, adapter, D3DDEVTYPE_HAL, GetShellWindow(), + hr = IDirect3D9_CreateDevice(priv->d3d9, adapter, D3DDEVTYPE_HAL, GetDesktopWindow(), D3DCREATE_SOFTWARE_VERTEXPROCESSING | D3DCREATE_MULTITHREADED | D3DCREATE_FPU_PRESERVE, &d3dpp, &priv->d3d9device); if (FAILED(hr)) { |