diff --git a/app/streaming/video/ffmpeg-renderers/vt.mm b/app/streaming/video/ffmpeg-renderers/vt.mm index f46ae3ea..7a2f32fe 100644 --- a/app/streaming/video/ffmpeg-renderers/vt.mm +++ b/app/streaming/video/ffmpeg-renderers/vt.mm @@ -523,6 +523,9 @@ public: [commandBuffer presentDrawable:m_NextDrawable]; [commandBuffer commit]; + // Wait for the command buffer to complete and free our CVMetalTextureCache references + [commandBuffer waitUntilCompleted]; + [m_NextDrawable release]; m_NextDrawable = nullptr; }}