mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
f128e2261a
TextEngine was storing closed captions and releasing them only on teardown. This might be a potential memory leak for long running sessions. This PR addresses it by removing cached captions along with removed segments. Furthermore, it adds some more tweaks and improvements, such as: - simplify CEA cache structure, from `Map<string, Map<string, Array<Cue>>>` to `Map<string, Array<Cue>>` - adjust TextEngine buffered ranges with cached cues values