1
Fork 0

Update process_video_task.go

This commit is contained in:
bzzim 2024-09-05 17:26:36 +05:00 committed by GitHub
parent bee0787ed4
commit 42e0f33615
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ func ReadVideoStreamMetadata(videoPath string) (*ffprobe.Stream, error) {
stream := data.FirstVideoStream()
if stream == nil {
return nil, errors.New(fmt.Sprintf("could not get stream from file metadata (%s)", path.Base(videoPath)))
return nil, fmt.Errorf("could not get stream from file metadata (%s)", path.Base(videoPath))
}
return stream, nil