diff options
author | 2024-10-14 09:59:12 +0000 | |
---|---|---|
committer | 2024-10-14 11:59:12 +0200 | |
commit | 6a76b9d609fab579a3b54674f098fda06e121e49 (patch) | |
tree | 6fbfcaceb88c3e9a86cbd41242042e1e9fe6ee27 /internal/media/ffmpeg/wasm.go | |
parent | [chore]: Bump github.com/minio/minio-go/v7 from 7.0.77 to 7.0.78 (#3431) (diff) | |
download | gotosocial-6a76b9d609fab579a3b54674f098fda06e121e49.tar.xz |
[feature/OFFICIALLY UNSUPPORTED] add nowasm build tag to disable building with WebAssembly (#3429)
* add experimental build-tag 'nowasm' which uses local ffmpeg / ffprobe
* updated experimental support message
* add comment to build script explaining build tag
* add nowasm build tags to moderncsqlite files
Diffstat (limited to 'internal/media/ffmpeg/wasm.go')
-rw-r--r-- | internal/media/ffmpeg/wasm.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/internal/media/ffmpeg/wasm.go b/internal/media/ffmpeg/wasm.go index d76e9017b..4a230eec7 100644 --- a/internal/media/ffmpeg/wasm.go +++ b/internal/media/ffmpeg/wasm.go @@ -15,6 +15,8 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. +//go:build !nowasm + package ffmpeg import ( @@ -41,12 +43,6 @@ var ( ffprobe wazero.CompiledModule ) -// Args encapsulates the passing of common -// configuration options to run an instance -// of a compiled WebAssembly module that is -// run in a typical CLI manner. -type Args = wasm.Args - // compileFfmpeg ensures the ffmpeg WebAssembly has been // pre-compiled into memory. If already compiled is a no-op. func compileFfmpeg(ctx context.Context) error { |