mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
rename OnPacketLost2 into OnPacketsLost (#736)
This commit is contained in:
@@ -96,7 +96,7 @@ type testServerHandler struct {
|
||||
onPause func(*ServerHandlerOnPauseCtx) (*base.Response, error)
|
||||
onSetParameter func(*ServerHandlerOnSetParameterCtx) (*base.Response, error)
|
||||
onGetParameter func(*ServerHandlerOnGetParameterCtx) (*base.Response, error)
|
||||
onPacketLost func(*ServerHandlerOnPacketLostCtx)
|
||||
onPacketsLost func(*ServerHandlerOnPacketsLostCtx)
|
||||
onDecodeError func(*ServerHandlerOnDecodeErrorCtx)
|
||||
}
|
||||
|
||||
@@ -180,9 +180,9 @@ func (sh *testServerHandler) OnGetParameter(ctx *ServerHandlerOnGetParameterCtx)
|
||||
return nil, fmt.Errorf("unimplemented")
|
||||
}
|
||||
|
||||
func (sh *testServerHandler) OnPacketLost(ctx *ServerHandlerOnPacketLostCtx) {
|
||||
if sh.onPacketLost != nil {
|
||||
sh.onPacketLost(ctx)
|
||||
func (sh *testServerHandler) OnPacketsLost(ctx *ServerHandlerOnPacketsLostCtx) {
|
||||
if sh.onPacketsLost != nil {
|
||||
sh.onPacketsLost(ctx)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user