1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Revert "fix: ensure secondary index is valid"

This reverts commit 01dfad4996d2bdc96a8506b6d0c4542bfd15bc3b.
This commit is contained in:
Ivan Schurawel 2023-02-19 16:40:47 -05:00 committed by Ivan Schurawel
parent 698abb929b
commit ab75013d60

View file

@ -2387,11 +2387,7 @@ class PlaybackManager {
console.debug(`AutoSet ${streamType} - Using ${bestStreamIndex} score ${bestStreamScore}.`); console.debug(`AutoSet ${streamType} - Using ${bestStreamIndex} score ${bestStreamScore}.`);
if (streamType == 'Subtitle') { if (streamType == 'Subtitle') {
if (isSecondarySubtitle) { if (isSecondarySubtitle) {
if (self.trackHasSecondarySubtitleSupport(mediaSource.MediaStreams[bestStreamIndex])) {
mediaSource.DefaultSecondarySubtitleStreamIndex = bestStreamIndex; mediaSource.DefaultSecondarySubtitleStreamIndex = bestStreamIndex;
} else {
mediaSource.DefaultSecondarySubtitleStreamIndex = -1;
}
} else { } else {
mediaSource.DefaultSubtitleStreamIndex = bestStreamIndex; mediaSource.DefaultSubtitleStreamIndex = bestStreamIndex;
} }