summaryrefslogtreecommitdiff
path: root/internal/media/ffmpeg/ffprobe.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/media/ffmpeg/ffprobe.go')
-rw-r--r--internal/media/ffmpeg/ffprobe.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/internal/media/ffmpeg/ffprobe.go b/internal/media/ffmpeg/ffprobe.go
index eca819b09..99d3d0563 100644
--- a/internal/media/ffmpeg/ffprobe.go
+++ b/internal/media/ffmpeg/ffprobe.go
@@ -15,10 +15,14 @@
// 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 (
"context"
+
+ "codeberg.org/gruf/go-ffmpreg/wasm"
)
// ffprobeRunner limits the number of
@@ -36,5 +40,7 @@ func InitFfprobe(ctx context.Context, max int) error {
// Ffprobe runs the given arguments with an instance of ffprobe.
func Ffprobe(ctx context.Context, args Args) (uint32, error) {
- return ffprobeRunner.Run(ctx, ffprobe, args)
+ return ffmpegRunner.Run(ctx, func() (uint32, error) {
+ return wasm.Run(ctx, runtime, ffprobe, args)
+ })
}