[FFmpeg-cvslog] ffmpeg_dxva2: call GetDesktopWindow() in place of GetShellWindow()
Stefano Sabatini
git at videolan.org
Wed Jun 3 16:45:33 CEST 2015
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed May 27 16:33:02 2015 +0200| [771537edcf703434161c100e6898891546d1d4b3] | committer: Stefano Sabatini
ffmpeg_dxva2: call GetDesktopWindow() in place of GetShellWindow()
This fixes compilation with latest MinGW, it does not seem to affect
MSYS2/MinGW-64.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=771537edcf703434161c100e6898891546d1d4b3
---
ffmpeg_dxva2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffmpeg_dxva2.c b/ffmpeg_dxva2.c
index 741c55b..6b20195 100644
--- a/ffmpeg_dxva2.c
+++ b/ffmpeg_dxva2.c
@@ -364,7 +364,7 @@ static int dxva2_alloc(AVCodecContext *s)
d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
d3dpp.Flags = D3DPRESENTFLAG_VIDEO;
- hr = IDirect3D9_CreateDevice(ctx->d3d9, adapter, D3DDEVTYPE_HAL, GetShellWindow(),
+ hr = IDirect3D9_CreateDevice(ctx->d3d9, adapter, D3DDEVTYPE_HAL, GetDesktopWindow(),
D3DCREATE_SOFTWARE_VERTEXPROCESSING | D3DCREATE_MULTITHREADED | D3DCREATE_FPU_PRESERVE,
&d3dpp, &ctx->d3d9device);
if (FAILED(hr)) {
More information about the ffmpeg-cvslog
mailing list