mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
fix: add config.Subscribe.SubType
This commit is contained in:
@@ -79,12 +79,11 @@ func (p *RecordJob) GetKey() string {
|
||||
|
||||
func (p *RecordJob) Subscribe() (err error) {
|
||||
if p.SubConf != nil {
|
||||
p.SubConf.SubType = SubscribeTypeVod
|
||||
p.Subscriber, err = p.Plugin.SubscribeWithConfig(p.recorder.GetTask().Context, p.StreamPath, *p.SubConf)
|
||||
} else {
|
||||
p.Subscriber, err = p.Plugin.Subscribe(p.recorder.GetTask().Context, p.StreamPath)
|
||||
}
|
||||
if p.Subscriber != nil {
|
||||
p.Subscriber.Type = SubscribeTypeVod
|
||||
p.SubConf = &config.Subscribe{SubType: SubscribeTypeVod}
|
||||
p.Subscriber, err = p.Plugin.SubscribeWithConfig(p.recorder.GetTask().Context, p.StreamPath, *p.SubConf)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user