Allow FFmpeg renderers to enforce V-sync being enabled or disabled

This commit is contained in:
Cameron Gutman
2018-09-03 20:57:09 -04:00
parent fa93364ddd
commit 2c068a99a3
10 changed files with 51 additions and 0 deletions
@@ -624,6 +624,11 @@ int DXVA2Renderer::getDecoderCapabilities()
return 0;
}
IFFmpegRenderer::VSyncConstraint DXVA2Renderer::getVsyncConstraint()
{
return VSYNC_ANY;
}
void DXVA2Renderer::renderFrameAtVsync(AVFrame *frame)
{
IDirect3DSurface9* surface = reinterpret_cast<IDirect3DSurface9*>(frame->data[3]);