Cleanup in utils
This commit is contained in:
parent
34c0e44380
commit
32f30850c4
4 changed files with 8 additions and 12 deletions
4
video.go
4
video.go
|
@ -90,10 +90,10 @@ func NewVideo(filename string) (*Video, error) {
|
|||
return nil, fmt.Errorf("video file %s does not exist", filename)
|
||||
}
|
||||
// Check if ffmpeg and ffprobe are installed on the users machine.
|
||||
if err := checkExists("ffmpeg"); err != nil {
|
||||
if err := installed("ffmpeg"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := checkExists("ffprobe"); err != nil {
|
||||
if err := installed("ffprobe"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue