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

Merge pull request #6224 from viown/fix-undefined-sub-stream-index

This commit is contained in:
Bill Thornton 2024-10-20 03:01:58 -04:00 committed by GitHub
commit 1ed7ce8cd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2641,7 +2641,9 @@ export class PlaybackManager {
}
if (mediaSource.DefaultSubtitleStreamIndex == null || mediaSource.DefaultSubtitleStreamIndex < 0) {
mediaSource.DefaultSubtitleStreamIndex = mediaSource.DefaultSecondarySubtitleStreamIndex;
if (mediaSource.DefaultSecondarySubtitleStreamIndex != null) {
mediaSource.DefaultSubtitleStreamIndex = mediaSource.DefaultSecondarySubtitleStreamIndex;
}
mediaSource.DefaultSecondarySubtitleStreamIndex = -1;
}