[FFmpeg-cvslog] hwcontext_dxva2: Use GetDesktopWindow instead of GetShellWindow
Hendrik Leppkes
git at videolan.org
Sun Jun 26 15:36:04 CEST 2016
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Sun Jun 26 15:34:40 2016 +0200| [06a0e184359b75c3534bb88b08233efa53be8397] | committer: Hendrik Leppkes
hwcontext_dxva2: Use GetDesktopWindow instead of GetShellWindow
Improves compatibility with some MinGW variants,
see 771537edcf703434161c100e6898891546d1d4b3
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=06a0e184359b75c3534bb88b08233efa53be8397
---
libavutil/hwcontext_dxva2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/hwcontext_dxva2.c b/libavutil/hwcontext_dxva2.c
index d26f906..e79254b 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)) {
More information about the ffmpeg-cvslog
mailing list