aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/js/av-merge.js
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2021-08-29 14:31:29 -0700
committerJesús <heckyel@hyperbola.info>2021-08-29 23:19:03 -0500
commit00c812ff4a3f5c7685a47885916b4bcb3a2c01d2 (patch)
treedc5202c327b0ea0e59eff88dc65647a37b8c9e3a /youtube/static/js/av-merge.js
parent2ae81f2a78fcf71ac14099cf6642cc6181299d27 (diff)
downloadyt-local-00c812ff4a3f5c7685a47885916b4bcb3a2c01d2.tar.lz
yt-local-00c812ff4a3f5c7685a47885916b4bcb3a2c01d2.tar.xz
yt-local-00c812ff4a3f5c7685a47885916b4bcb3a2c01d2.zip
av-merge: Fix numDeleted not incremented during segment deletion
Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/static/js/av-merge.js')
-rw-r--r--youtube/static/js/av-merge.js1
1 files changed, 1 insertions, 0 deletions
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++;
}
}
}