This commit is contained in:
Manav Rathi
2025-05-23 11:22:20 +05:30
parent a32c8116a2
commit 0b5317867f
2 changed files with 4 additions and 0 deletions

View File

@@ -53,6 +53,8 @@ export interface FFmpegUtilityProcess {
log.debugString("Started ffmpeg utility process");
process.on("uncaughtException", (e, origin) => log.error(origin, e));
process.parentPort.once("message", (e) => {
// Expose an instance of `FFmpegUtilityProcess` on the port we got from our
// parent.

View File

@@ -24,6 +24,8 @@ import { fsStatMtime } from "./fs";
log.debugString("Started ML utility process");
process.on("uncaughtException", (e, origin) => log.error(origin, e));
process.parentPort.once("message", (e) => {
// Initialize ourselves with the data we got from our parent.
parseInitData(e.data);