mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-26 19:51:14 +08:00
对推流可能无法解析的情况进行报错
This commit is contained in:
@@ -91,7 +91,9 @@ func (conf *RTSPConfig) OnAnnounce(ctx *gortsplib.ServerHandlerOnAnnounceCtx) (*
|
||||
if err := plugin.Publish(ctx.Path, p); err == nil {
|
||||
p.tracks = ctx.Tracks
|
||||
p.stream = gortsplib.NewServerStream(ctx.Tracks)
|
||||
p.SetTracks()
|
||||
if err = p.SetTracks(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
conf.Store(ctx.Conn, p)
|
||||
conf.Store(ctx.Session, p)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user