From ea4348b6bdc744211671b0cb8e6a982ddf839dec Mon Sep 17 00:00:00 2001 From: Inbal Vasserman Date: Thu, 4 Jan 2024 15:33:24 +0200 Subject: [PATCH] fix(SUP-40695): [SmartTV][Cetin's bug] Player_SmartTV_Samsung - An infinite spinner is displayed in the player after the application was extensively used --- src/player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.ts b/src/player.ts index 5e0058b47..ea4e9c71f 100644 --- a/src/player.ts +++ b/src/player.ts @@ -2421,7 +2421,7 @@ export default class Player extends FakeEventTarget { */ public _updateTracks(tracks: Array): void { Player._logger.debug('Tracks changed', tracks); - this._tracks = tracks.concat(this._externalCaptionsHandler.getExternalTracks(tracks)); + this._tracks = tracks?.concat(this._externalCaptionsHandler.getExternalTracks(tracks)); this._applyABRRestriction(this._config); this._addTextTrackOffOption(); this._maybeSetTracksLabels();