summaryrefslogtreecommitdiff
path: root/internal/media/processingmedia.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-08-19 13:38:10 +0000
committerLibravatar GitHub <noreply@github.com>2024-08-19 13:38:10 +0000
commit889d4756eaabb8fa3218acc1e2cfcadf72d40822 (patch)
treede225eedda67b2ea44a14c57f9d3451ec4beb949 /internal/media/processingmedia.go
parent[chore] update default http client timeout to 30s (#3214) (diff)
downloadgotosocial-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.go2
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 {