Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit 67bc95b

Browse files
committed
fix show errors
1 parent 1a993bf commit 67bc95b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ffmpeg/ffmpeg.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ func (t *Transcoder) Start(opts transcoder.Options) (<-chan transcoder.Progress,
103103
if err != nil {
104104
return nil, fmt.Errorf("Failed starting transcoding (%s) with args (%s) with error %s", t.config.FfmpegBinPath, args, err)
105105
}
106-
if int(t.config.Timeout) > 0 {
107106

108-
}
109107
if (t.config.ProgressEnabled && !t.config.Verbose) || (int(t.config.Timeout) > 0) {
110108
if t.config.ProgressEnabled {
111109
go func() {
@@ -129,6 +127,9 @@ func (t *Transcoder) Start(opts transcoder.Options) (<-chan transcoder.Progress,
129127

130128
} else {
131129
err = cmd.Wait()
130+
if err != nil {
131+
return nil, fmt.Errorf("Error ffmeg execute command %s, %w", cmd.String(), err)
132+
}
132133
}
133134

134135
return out, nil

0 commit comments

Comments
 (0)