mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-24 00:47:23 +00:00
Use a separate callback to indicate EOS instead of renderFrame()
This commit is contained in:
@@ -584,11 +584,6 @@ void D3D11VARenderer::setHdrMode(bool enabled)
|
||||
|
||||
void D3D11VARenderer::renderFrame(AVFrame* frame)
|
||||
{
|
||||
if (frame == nullptr) {
|
||||
// End of stream - nothing to do for us
|
||||
return;
|
||||
}
|
||||
|
||||
// Acquire the context lock for rendering to prevent concurrent
|
||||
// access from inside FFmpeg's decoding code
|
||||
lockContext(this);
|
||||
|
||||
Reference in New Issue
Block a user