Skip to content

Commit

Permalink
ffmpeg_dxva2: call GetDesktopWindow() in place of GetShellWindow()
Browse files Browse the repository at this point in the history
This fixes compilation with latest MinGW, it does not seem to affect
MSYS2/MinGW-64.
  • Loading branch information
saste committed Jun 3, 2015
1 parent b8c0cf7 commit 771537e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffmpeg_dxva2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 771537e

Please sign in to comment.