This commit is contained in:
NoLogicAlan committed 2026-10-17 03:40:20 +03:00
1 parent 4bc2a98bab
commit 500b0de4c8
15 files changed
+134 -714

No files matched your search

+7 -5
View File
@@ -162,15 +162,17 @@ export class StreamPositioner extends Transform {
/** @param {Buffer} chunk @param {string} _enc @param {Function} cb @protected */
_transform(chunk, _enc, cb) {
let error = null;
try {
if (this._done) this.push(chunk);
else if (this._kind === "ogg") this._feedOgg(chunk);
if (this._done) {
this.push(chunk);
return cb();
}
if (this._kind === "ogg") this._feedOgg(chunk);
else this._feedWebm(chunk);
cb();
} catch (err) {
error = err;
cb(err);
}
cb(error);
}
/** @param {Function} cb @protected */