av-merge: Fix numDeleted not incremented during segment deletion

Signed-off-by: Jesús <heckyel@hyperbola.info>
This commit is contained in:
James Taylor 2021-08-29 14:31:29 -07:00 committed by Jesús
parent 2ae81f2a78
commit 00c812ff4a
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -249,6 +249,7 @@ Stream.prototype.appendSegment = function(segmentIdx, chunk) {
if (entry.have) {
this.reportWarning('Deleting segment', i);
this.sourceBuffer.remove(start, end);
numDeleted++;
}
}
}