mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-05 21:33:18 -06:00
set empty module name when calling ffmpeg / ffprobe
This commit is contained in:
parent
36889ca26f
commit
4fcd3c9f95
1 changed files with 8 additions and 0 deletions
|
|
@ -181,6 +181,10 @@ func ffmpeg(ctx context.Context, inpath string, outpath string, args ...string)
|
||||||
}
|
}
|
||||||
fscfg = fscfg.WithFSMount(shared, path.Dir(inpath))
|
fscfg = fscfg.WithFSMount(shared, path.Dir(inpath))
|
||||||
|
|
||||||
|
// Set anonymous module name.
|
||||||
|
modcfg = modcfg.WithName("")
|
||||||
|
|
||||||
|
// Update with prepared fs config.
|
||||||
return modcfg.WithFSConfig(fscfg)
|
return modcfg.WithFSConfig(fscfg)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
@ -247,6 +251,10 @@ func ffprobe(ctx context.Context, filepath string) (*result, error) {
|
||||||
}
|
}
|
||||||
fscfg = fscfg.WithFSMount(in, path.Dir(filepath))
|
fscfg = fscfg.WithFSMount(in, path.Dir(filepath))
|
||||||
|
|
||||||
|
// Set anonymous module name.
|
||||||
|
modcfg = modcfg.WithName("")
|
||||||
|
|
||||||
|
// Update with prepared fs config.
|
||||||
return modcfg.WithFSConfig(fscfg)
|
return modcfg.WithFSConfig(fscfg)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue