Use a separate callback to indicate EOS instead of renderFrame()

This commit is contained in:
Cameron Gutman 2022-04-07 21:30:20 -05:00
commit 474591c6a5
12 changed files with 18 additions and 50 deletions

View file

@ -161,11 +161,6 @@ public:
// Caller frees frame after we return
virtual void renderFrame(AVFrame* frame) override
{
if (frame == nullptr) {
// End of stream - nothing to do for us
return;
}
OSStatus status;
CVPixelBufferRef pixBuf = reinterpret_cast<CVPixelBufferRef>(frame->data[3]);