From 25d4688f8d6a96a497bec1efe7b0d8e4d3fbe7a8 Mon Sep 17 00:00:00 2001 From: Iragne Date: Fri, 6 Dec 2024 14:04:54 +0100 Subject: [PATCH] Fix Error due to deleted stream --- lib/dash/dash_parser.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dash/dash_parser.js b/lib/dash/dash_parser.js index c407e16be2..42092f43a0 100644 --- a/lib/dash/dash_parser.js +++ b/lib/dash/dash_parser.js @@ -1500,6 +1500,9 @@ shaka.dash.DashParser = class { let shouldDeleteIndex = true; for (const contextId of this.indexStreamMap_[pId]) { const stream = this.streamMap_[contextId]; + if (!stream) { + continue; + } if (stream.segmentIndex && !stream.segmentIndex.isEmpty()) { shouldDeleteIndex = false; continue;