Skip to content

Commit

Permalink
FEC-14226: protect againts update tracks event without tracks (#803)
Browse files Browse the repository at this point in the history
### Description of the Changes

Please add a detailed description of the change, whether it's an
enhancement or a bugfix.
If the PR is related to an open issue please link to it.

### CheckLists

- [ ] changes have been done against master branch, and PR does not
conflict
- [ ] new unit / functional tests have been added (whenever applicable)
- [ ] test are passing in local environment
- [ ] Travis tests are passing (or test results are not worse than on
master branch :))
- [ ] Docs have been updated
MosheMaorKaltura authored Dec 9, 2024

Verified

This commit was signed with the committer’s verified signature.
xeroc Fabian Schuh
1 parent afb5939 commit af474d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/player.ts
Original file line number Diff line number Diff line change
@@ -2469,6 +2469,9 @@ export default class Player extends FakeEventTarget {
* @returns {void}
*/
public _updateTracks(tracks: Array<Track>): void {
if(!tracks) {
return;
}
Player._logger.debug('Tracks changed', tracks);

if (this.config.playback.updateAudioDescriptionLabels) {

0 comments on commit af474d8

Please sign in to comment.