diff options
Diffstat (limited to 'vendor/codeberg.org/gruf/go-ffmpreg/wasm')
| -rw-r--r-- | vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go b/vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go index 62ce2bc25..7b07d851d 100644 --- a/vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go +++ b/vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go @@ -14,6 +14,11 @@ import (  // wazero.Runtime on module instantiation.  type Args struct { +	// Program name, depending on the +	// module being run this may or may +	// not be necessary. +	Name string +  	// Optional further module configuration function.  	// (e.g. to mount filesystem dir, set env vars, etc).  	Config func(wazero.ModuleConfig) wazero.ModuleConfig @@ -39,7 +44,7 @@ func Run(  	// Prefix arguments with module name.  	cargs := make([]string, len(args.Args)+1) -	cargs[0] = module.Name() +	cargs[0] = args.Name  	copy(cargs[1:], args.Args)  	// Prepare new module configuration.  | 
