Update process_video_task.go
This commit is contained in:
parent
bee0787ed4
commit
42e0f33615
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue