mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-10-06 20:12:46 +08:00
fix: restart transcode
This commit is contained in:
@@ -3,6 +3,7 @@ package transcode
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"m7s.live/pro/pkg"
|
||||
"net"
|
||||
"net/url"
|
||||
"os"
|
||||
@@ -191,7 +192,10 @@ func (t *Transformer) Run() error {
|
||||
defer close(rBuf)
|
||||
return live.Run()
|
||||
} else {
|
||||
return t.ffmpeg.Wait()
|
||||
if err := t.ffmpeg.Wait(); err != nil {
|
||||
return err
|
||||
}
|
||||
return pkg.ErrRestart
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user