Skip to content

Commit 18652b6

Browse files
authored
fix: Fix unload call after destroy (#7690)
1 parent 1236c2d commit 18652b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/player.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
15111511
// after several playbacks, and they are not able anymore to properly
15121512
// create MediaKeys objects. To prevent it, clear the cache after
15131513
// each playback.
1514-
if (this.config_.streaming.clearDecodingCache) {
1514+
if (this.config_ && this.config_.streaming.clearDecodingCache) {
15151515
shaka.util.StreamUtils.clearDecodingConfigCache();
15161516
shaka.util.DrmUtils.clearMediaKeySystemAccessMap();
15171517
}

0 commit comments

Comments
 (0)