mirror of
https://github.com/wukko/cobalt.git
synced 2025-05-29 04:50:13 +02:00
web/libav: fix import double slash, use unlinkreadaheadfile
This commit is contained in:
parent
5fb9b1c809
commit
bc272b910e
@ -15,10 +15,11 @@ export default class LibAVWrapper {
|
|||||||
if (!this.libav) {
|
if (!this.libav) {
|
||||||
this.libav = await LibAV.LibAV({
|
this.libav = await LibAV.LibAV({
|
||||||
yesthreads: true,
|
yesthreads: true,
|
||||||
base: '/_libav/'
|
base: '/_libav'
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async render({ blob, output, args }: RenderParams) {
|
async render({ blob, output, args }: RenderParams) {
|
||||||
if (!this.libav) throw new Error("LibAV wasn't initialized");
|
if (!this.libav) throw new Error("LibAV wasn't initialized");
|
||||||
@ -78,10 +79,7 @@ export default class LibAVWrapper {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
await this.libav.unlink(outputName);
|
await this.libav.unlink(outputName);
|
||||||
|
await this.libav.unlinkreadaheadfile("input");
|
||||||
// FIXME: this is not correct, and needs to be replaced
|
|
||||||
// with unlinkmkreadaheadfile().
|
|
||||||
await this.libav.unlink("input");
|
|
||||||
|
|
||||||
const renderBlob = new Blob(
|
const renderBlob = new Blob(
|
||||||
[ writtenData ],
|
[ writtenData ],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user