mirror of
https://github.com/Monibuca/engine.git
synced 2025-10-05 08:36:56 +08:00
修复DTS生成时遇到PTS超过循环的情况
This commit is contained in:
@@ -286,8 +286,8 @@ func (opt *Plugin) Pull(streamPath string, url string, puller IPuller, save int)
|
||||
time.Sleep(time.Second * 5)
|
||||
} else {
|
||||
if err = opt.Publish(streamPath, puller); err != nil {
|
||||
if puber := Streams.Get(streamPath).Publisher; puber != puller && puber != nil {
|
||||
io := puber.GetPublisher()
|
||||
if stream := Streams.Get(streamPath); stream != nil && stream.Publisher != puller && stream.Publisher != nil {
|
||||
io := stream.Publisher.GetPublisher()
|
||||
opt.Error("puller is not publisher", zap.String("ID", io.ID), zap.String("Type", io.Type), zap.Error(err))
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user