mirror of
https://github.com/Monibuca/engine.git
synced 2025-09-27 04:46:03 +08:00
修复在创建流,并且save=2的情况下返回EOF的错误。
This commit is contained in:
@@ -302,6 +302,9 @@ func (opt *Plugin) Pull(streamPath string, url string, puller IPuller, save int)
|
||||
m[id] = pullConf.PullOnSub[id]
|
||||
}
|
||||
m[streamPath] = url
|
||||
if pullConf.PullOnSub == nil {
|
||||
pullConf.PullOnSub = make(map[string]string)
|
||||
}
|
||||
pullConf.PullOnSub[streamPath] = url
|
||||
opt.RawConfig.ParseModifyFile(map[string]any{
|
||||
"pull": map[string]any{
|
||||
|
Reference in New Issue
Block a user