remove ServerHandler.Server

This commit is contained in:
aler9
2023-08-14 17:26:42 +02:00
parent 779ad4e3ca
commit e2c526b3b8
6 changed files with 18 additions and 16 deletions

View File

@@ -219,11 +219,12 @@ func TestServerRecordPath(t *testing.T) {
},
} {
t.Run(ca.name, func(t *testing.T) {
s := &Server{
var s *Server
s = &Server{
Handler: &testServerHandler{
onAnnounce: func(ctx *ServerHandlerOnAnnounceCtx) (*base.Response, error) {
// make sure that media URLs are not overridden by NewServerStream()
stream := NewServerStream(ctx.Server, ctx.Medias)
stream := NewServerStream(s, ctx.Medias)
defer stream.Close()
return &base.Response{