fix: restart transcode

This commit is contained in:
langhuihui
2024-11-05 09:48:43 +08:00
parent 4c7cb6fed7
commit 1e61c9ccd7
4 changed files with 26 additions and 11 deletions

View File

@@ -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
}
}