Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 7707a5ea4ea4deae99952e8681de55e6f2940f14 https://github.com/WebKit/WebKit/commit/7707a5ea4ea4deae99952e8681de55e6f2940f14 Author: Jer Noble <jer.no...@apple.com> Date: 2025-09-11 (Thu, 11 Sep 2025)
Changed paths: M Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm M Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.h M Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm Log Message: ----------- [iOS] VTDecompressionSession is not torn down when app is backgrounded rdar://157599848 https://bugs.webkit.org/show_bug.cgi?id=298674 Reviewed by Jean-Yves Avenard and Youenn Fablet. When the MediaSourcePrefersDecompressionSession preference is enabled, a VTDecompressionSession is created and used to decode video frames before enqueueing them for display. However this decompression session is not torn down when the app moves to the background state, unlike the decompression session used internally in AVSampleBufferDisplayLayer. This causes various system processes to use more memory in this state, keeping server-side objects alive and in some cases keeping server processes themselves from being closed. For paused players, tear down the decompression session when moving to background; it will be silently recreated the next time playback begins. * Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::applicationWillResignActive): * Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.h: * Source/WebCore/platform/graphics/cocoa/VideoMediaSampleRenderer.mm: (WebCore::VideoMediaSampleRenderer::invalidateDecompressionSession): Canonical link: https://commits.webkit.org/299841@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes