From 00c812ff4a3f5c7685a47885916b4bcb3a2c01d2 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sun, 29 Aug 2021 14:31:29 -0700 Subject: av-merge: Fix numDeleted not incremented during segment deletion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús --- youtube/static/js/av-merge.js | 1 + 1 file changed, 1 insertion(+) (limited to 'youtube/static') diff --git a/youtube/static/js/av-merge.js b/youtube/static/js/av-merge.js index 8915ba6..d09fa0b 100644 --- a/youtube/static/js/av-merge.js +++ b/youtube/static/js/av-merge.js @@ -249,6 +249,7 @@ Stream.prototype.appendSegment = function(segmentIdx, chunk) { if (entry.have) { this.reportWarning('Deleting segment', i); this.sourceBuffer.remove(start, end); + numDeleted++; } } } -- cgit v1.2.3