mirror of
https://github.com/Monibuca/plugin-rtsp.git
synced 2025-09-26 19:51:14 +08:00
适配引擎修改
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user