hwcontext_dxva2: Use GetDesktopWindow instead of GetShellWindow
authorHendrik Leppkes <h.leppkes@gmail.com>
Sun, 26 Jun 2016 13:34:40 +0000 (15:34 +0200)
committerHendrik Leppkes <h.leppkes@gmail.com>
Sun, 26 Jun 2016 13:34:40 +0000 (15:34 +0200)
Improves compatibility with some MinGW variants,
see 771537edcf703434161c100e6898891546d1d4b3

libavutil/hwcontext_dxva2.c

index d26f906..e79254b 100644 (file)
@@ -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)) {