web/remux: correctly unset processing state
This commit is contained in:
parent
0e461d4ebe
commit
d446dfd87e
1 changed files with 34 additions and 33 deletions
|
@ -43,7 +43,7 @@
|
||||||
const render = async () => {
|
const render = async () => {
|
||||||
if (!file || processing) return;
|
if (!file || processing) return;
|
||||||
await ff.init();
|
await ff.init();
|
||||||
|
try {
|
||||||
progress = '';
|
progress = '';
|
||||||
processing = true;
|
processing = true;
|
||||||
|
|
||||||
|
@ -71,15 +71,16 @@
|
||||||
args: ['-c', 'copy', '-map', '0']
|
args: ['-c', 'copy', '-map', '0']
|
||||||
});
|
});
|
||||||
|
|
||||||
processing = false;
|
|
||||||
|
|
||||||
if (render) {
|
if (render) {
|
||||||
openURL(URL.createObjectURL(render));
|
openURL(URL.createObjectURL(render));
|
||||||
} else {
|
} else {
|
||||||
console.log("not a valid file");
|
console.log("not a valid file");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} finally {
|
||||||
|
processing = false;
|
||||||
file = undefined;
|
file = undefined;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
$: if (file) {
|
$: if (file) {
|
||||||
|
|
Loading…
Reference in a new issue