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:
parent
50eb5f277d
commit
3d3a0c43b3
1 changed files with 1 additions and 1 deletions
|
@ -891,7 +891,7 @@ class PlaybackManager {
|
||||||
* - or if it can be paired with a secondary subtitle when used as a primary subtitle
|
* - or if it can be paired with a secondary subtitle when used as a primary subtitle
|
||||||
*/
|
*/
|
||||||
self.trackHasSecondarySubtitleSupport = function (track, player = self._currentPlayer) {
|
self.trackHasSecondarySubtitleSupport = function (track, player = self._currentPlayer) {
|
||||||
if (!player) return false;
|
if (!player || !track) return false;
|
||||||
const format = (track.Codec || '').toLowerCase();
|
const format = (track.Codec || '').toLowerCase();
|
||||||
// Currently, only non-SSA/non-ASS external subtitles are supported.
|
// Currently, only non-SSA/non-ASS external subtitles are supported.
|
||||||
// Showing secondary subtitles does not work with any SSA/ASS subtitle combinations because
|
// Showing secondary subtitles does not work with any SSA/ASS subtitle combinations because
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue