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:
parent
698abb929b
commit
ab75013d60
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue