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:
@@ -344,11 +344,6 @@ void SdlRenderer::renderFrame(AVFrame* frame)
|
||||
int err;
|
||||
AVFrame* swFrame = nullptr;
|
||||
|
||||
if (frame == nullptr) {
|
||||
// End of stream - nothing to do for us
|
||||
return;
|
||||
}
|
||||
|
||||
if (frame->hw_frames_ctx != nullptr && frame->format != AV_PIX_FMT_CUDA) {
|
||||
#ifdef HAVE_CUDA
|
||||
ReadbackRetry:
|
||||
|
||||
Reference in New Issue
Block a user