Skip to content

Commit

Permalink
Fix subtitle stream controller buffered TimeRanges
Browse files Browse the repository at this point in the history
  • Loading branch information
robwalch committed Feb 13, 2024
1 parent aadb239 commit b474062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/subtitle-stream-controller.ts
Expand Up @@ -218,7 +218,7 @@ export class SubtitleStreamController
event: Events.SUBTITLE_TRACKS_UPDATED,
{ subtitleTracks }: SubtitleTracksUpdatedData,
) {
if (!this.levels || subtitleOptionsIdentical(this.levels, subtitleTracks)) {
if (this.levels && subtitleOptionsIdentical(this.levels, subtitleTracks)) {
this.levels = subtitleTracks.map(
(mediaPlaylist) => new Level(mediaPlaylist),
);
Expand Down

0 comments on commit b474062

Please sign in to comment.