Send a null AVFrame to indicate end of stream to allow renderers to do render thread cleanup
This commit is contained in:
parent
5ed7e03b2e
commit
51e9ab83ad
9 changed files with 48 additions and 0 deletions
|
|
@ -259,6 +259,11 @@ 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) {
|
||||
// If we are acting as the frontend for a hardware
|
||||
// accelerated decoder, we'll need to read the frame
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue