stream: don't die on stdout error

monorepo
Varun Patil 2023-03-17 14:30:30 -07:00
parent 7dde1e145c
commit 5cb165d15f
1 changed files with 6 additions and 6 deletions

View File

@ -565,10 +565,10 @@ func (s *Stream) monitorTranscodeOutput(cmdStdOut io.ReadCloser, startAt float64
if len(line) == 0 { if len(line) == 0 {
break break
} }
} else if err != nil {
log.Println(err)
break
} else { } else {
if err != nil {
log.Fatal(err)
}
line = line[:(len(line) - 1)] line = line[:(len(line) - 1)]
} }
@ -631,10 +631,10 @@ func (s *Stream) monitorStderr(cmdStdErr io.ReadCloser) {
if len(line) == 0 { if len(line) == 0 {
break break
} }
} else if err != nil {
log.Println(err)
break
} else { } else {
if err != nil {
log.Fatal(err)
}
line = line[:(len(line) - 1)] line = line[:(len(line) - 1)]
} }
log.Println("ffmpeg-error:", string(line)) log.Println("ffmpeg-error:", string(line))