适配引擎修改

This commit is contained in:
dexter
2023-03-28 19:48:59 +08:00
parent ea5ea6f48a
commit 225bb482d5
5 changed files with 74 additions and 43 deletions

View File

@@ -31,9 +31,9 @@ func (conf *RTSPConfig) OnSessionOpen(ctx *gortsplib.ServerHandlerOnSessionOpenC
func (conf *RTSPConfig) OnSessionClose(ctx *gortsplib.ServerHandlerOnSessionCloseCtx) {
RTSPPlugin.Debug("session closed")
if p, ok := conf.LoadAndDelete(ctx.Session); ok {
p.(IIO).Stop()
}
// if p, ok := conf.LoadAndDelete(ctx.Session); ok {
// p.(IIO).Stop()
// }
}
// called after receiving a DESCRIBE request.