mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
rollback
This commit is contained in:
1 parent
4bc2a98bab
commit
500b0de4c8
15 files changed
+134
-714
No files matched your search
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user