Browse Source

interop_dxva2: fix flickering effect

pull/144/head
Pierre Lamot 3 years ago
committed by Jean-Baptiste Kempf
parent
commit
f808bdd6b8
  1. 7
      modules/video_output/opengl/interop_dxva2.c

7
modules/video_output/opengl/interop_dxva2.c

@ -133,6 +133,13 @@ GLConvUpdate(const struct vlc_gl_interop *interop, uint32_t textures[],
(const char*)&dstDesc.Format, dstDesc.Format, hr);
return VLC_EGENERIC;
}
hr = IDirect3DDevice9Ex_PresentEx(d3d9_decoder->d3ddev.devex, NULL, NULL, NULL, NULL, D3DPRESENT_INTERVAL_IMMEDIATE);
if (FAILED(hr))
{
msg_Warn(interop->gl, "IDirect3DDevice9_Present failed. (0x%lX)", hr);
return VLC_EGENERIC;
}
}
else
{

Loading…
Cancel
Save