mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Send a null AVFrame to indicate end of stream to allow renderers to do render thread cleanup
This commit is contained in:
1 parent
5ed7e03b2e
commit
51e9ab83ad
9 files changed
+48
No files matched your search
@@ -202,6 +202,11 @@ int DrmRenderer::getRendererAttributes()
|
||||
|
||||
void DrmRenderer::renderFrame(AVFrame* frame)
|
||||
{
|
||||
if (frame == nullptr) {
|
||||
// End of stream - nothing to do for us
|
||||
return;
|
||||
}
|
||||
|
||||
AVDRMFrameDescriptor* drmFrame = (AVDRMFrameDescriptor*)frame->data[0];
|
||||
int err;
|
||||
uint32_t primeHandle;
|
||||
|
||||
Reference in new issue
Block a user