diff options
author | 2024-08-19 13:38:10 +0000 | |
---|---|---|
committer | 2024-08-19 13:38:10 +0000 | |
commit | 889d4756eaabb8fa3218acc1e2cfcadf72d40822 (patch) | |
tree | de225eedda67b2ea44a14c57f9d3451ec4beb949 /internal/media/processingmedia.go | |
parent | [chore] update default http client timeout to 30s (#3214) (diff) | |
download | gotosocial-889d4756eaabb8fa3218acc1e2cfcadf72d40822.tar.xz |
[performance] use native Go code to probe JPEGs (#3206)
* use native Go code to probe JPEGs
* add note about copying from github.com/disintegration/imaging
* add more code comments
Diffstat (limited to 'internal/media/processingmedia.go')
-rw-r--r-- | internal/media/processingmedia.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/media/processingmedia.go b/internal/media/processingmedia.go index b89bbb41d..78c6c61a9 100644 --- a/internal/media/processingmedia.go +++ b/internal/media/processingmedia.go @@ -162,7 +162,7 @@ func (p *ProcessingMedia) store(ctx context.Context) error { // Pass input file through ffprobe to // parse further metadata information. - result, err := ffprobe(ctx, temppath) + result, err := probe(ctx, temppath) if err != nil && !isUnsupportedTypeErr(err) { return gtserror.Newf("ffprobe error: %w", err) } else if result == nil { |