aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--youtube/static/js/av-merge.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/static/js/av-merge.js b/youtube/static/js/av-merge.js
index 3198857..8a1deb8 100644
--- a/youtube/static/js/av-merge.js
+++ b/youtube/static/js/av-merge.js
@@ -164,7 +164,7 @@ function Stream(avMerge, source, startTime, avRatio) {
});
this.updateendEvt = addEvent(this.sourceBuffer, 'updateend', (e) => {
if (this.appendQueue.length != 0) {
- this.appendSegment(...this.appendQueue.pop());
+ this.appendSegment(...this.appendQueue.shift());
}
});
}