Clear image subtitle caches when video stream sessions end
Tim Falken authored 6 months ago
Image subtitle frame and event caches were accumulating indefinitely, even after
a video stream session ended. After watching ~10 videos with image-based
subtitles, memory fragmentation would cause rendering delays and missing frames.
Now when a video stream session is destroyed (all leases released), the associated
image subtitle caches are immediately cleared via clearCachesForFile(). This
follows the same pattern as video chunk cleanup and prevents unbounded growth.