Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2015-05-27 17:33:02 +0300
committerStefano Sabatini <stefasab@gmail.com>2015-06-03 17:25:08 +0300
commit771537edcf703434161c100e6898891546d1d4b3 (patch)
treee17c31e806e157853886960b4de19a4efc4db7cb /ffmpeg_dxva2.c
parentb8c0cf7880cfe3734324dcf0ff98b655b59fd41e (diff)
ffmpeg_dxva2: call GetDesktopWindow() in place of GetShellWindow()
This fixes compilation with latest MinGW, it does not seem to affect MSYS2/MinGW-64.
Diffstat (limited to 'ffmpeg_dxva2.c')
-rw-r--r--ffmpeg_dxva2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg_dxva2.c b/ffmpeg_dxva2.c
index 741c55b015..6b20195f82 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)) {