update go-ffmpreg to v0.2.5 (pulls in latest tetratelabs/wazero) (#3203)

This commit is contained in:
kim 2024-08-15 00:08:55 +00:00 committed by GitHub
commit 09f24e0446
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
75 changed files with 1772 additions and 1913 deletions

View file

@ -197,7 +197,13 @@ func (r *runtime) Module(moduleName string) api.Module {
if len(moduleName) == 0 {
return nil
}
return r.store.Module(moduleName)
m := r.store.Module(moduleName)
if m == nil {
return nil
} else if m.Source.IsHostModule {
return hostModuleInstance{m}
}
return m
}
// CompileModule implements Runtime.CompileModule