Revert "fix: ensure secondary index is valid"
This reverts commit 01dfad4996d2bdc96a8506b6d0c4542bfd15bc3b.
This commit is contained in:
committed by
Ivan Schurawel
parent
698abb929b
commit
ab75013d60
@@ -2387,11 +2387,7 @@ class PlaybackManager {
|
||||
console.debug(`AutoSet ${streamType} - Using ${bestStreamIndex} score ${bestStreamScore}.`);
|
||||
if (streamType == 'Subtitle') {
|
||||
if (isSecondarySubtitle) {
|
||||
if (self.trackHasSecondarySubtitleSupport(mediaSource.MediaStreams[bestStreamIndex])) {
|
||||
mediaSource.DefaultSecondarySubtitleStreamIndex = bestStreamIndex;
|
||||
} else {
|
||||
mediaSource.DefaultSecondarySubtitleStreamIndex = -1;
|
||||
}
|
||||
mediaSource.DefaultSecondarySubtitleStreamIndex = bestStreamIndex;
|
||||
} else {
|
||||
mediaSource.DefaultSubtitleStreamIndex = bestStreamIndex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user