mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 05:50:49 +00:00
Require a test frame with D3D11VA
This commit is contained in:
1 parent
d3a542bac4
commit
f732b1978e
2 files changed
+10
No files matched your search
@@ -1002,6 +1002,15 @@ int D3D11VARenderer::getRendererAttributes()
|
||||
return RENDERER_ATTRIBUTE_HDR_SUPPORT;
|
||||
}
|
||||
|
||||
bool D3D11VARenderer::needsTestFrame()
|
||||
{
|
||||
// We can usually determine when D3D11VA will work based on which decoder GUIDs are supported,
|
||||
// however there are some strange cases (Quadro P400 + Radeon HD 5570) where something goes
|
||||
// horribly wrong and D3D11VideoDevice::CreateVideoDecoder() fails inside FFmpeg. We need to
|
||||
// catch that case before we commit to using D3D11VA.
|
||||
return true;
|
||||
}
|
||||
|
||||
void D3D11VARenderer::lockContext(void *lock_ctx)
|
||||
{
|
||||
auto me = (D3D11VARenderer*)lock_ctx;
|
||||
|
||||
Reference in new issue
Block a user