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

chore: ensure check has valid track

This commit is contained in:
Ivan Schurawel 2023-02-19 15:40:36 -05:00 committed by Ivan Schurawel
parent 50eb5f277d
commit 3d3a0c43b3

View file

@ -891,7 +891,7 @@ class PlaybackManager {
* - or if it can be paired with a secondary subtitle when used as a primary subtitle
*/
self.trackHasSecondarySubtitleSupport = function (track, player = self._currentPlayer) {
if (!player) return false;
if (!player || !track) return false;
const format = (track.Codec || '').toLowerCase();
// Currently, only non-SSA/non-ASS external subtitles are supported.
// Showing secondary subtitles does not work with any SSA/ASS subtitle combinations because