Merge pull request #110 from ente-io/fix-ffmpeg-static-for-zip-upoad
Fix ffmpeg static for zip upload
This commit is contained in:
commit
f1b1b88085
|
@ -1,4 +1,5 @@
|
|||
import { ipcRenderer } from 'electron';
|
||||
import { existsSync } from 'fs';
|
||||
import { logError } from '../services/logging';
|
||||
import { ElectronFile } from '../types';
|
||||
|
||||
|
@ -10,7 +11,7 @@ export async function runFFmpegCmd(
|
|||
let inputFilePath = null;
|
||||
let createdTempInputFile = null;
|
||||
try {
|
||||
if (!inputFile.path) {
|
||||
if (!existsSync(inputFile.path)) {
|
||||
const inputFileData = new Uint8Array(await inputFile.arrayBuffer());
|
||||
inputFilePath = await ipcRenderer.invoke(
|
||||
'write-temp-file',
|
||||
|
|
Loading…
Reference in a new issue