OpenCut/apps
Abelino Chavez 80b229c3bf fix: properly dispose WebCodecs resources in video cache (#663)
The VideoCache was creating Input objects but not storing them,
so input.dispose() was never called. This caused WebCodecs
VideoDecoder resources to leak, leading to browser crashes
during video playback.

Changes:
- Store Input object in VideoSinkData
- Call input.dispose() on initialization errors
- Call input.dispose() when clearing video from cache
- Clear frame references when disposing

This follows the same pattern as AudioManager which properly
manages Input disposal.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-23 17:52:33 -06:00
..
web fix: properly dispose WebCodecs resources in video cache (#663) 2026-02-23 17:52:33 -06:00