add *Server argument to NewServerStream()

This commit is contained in:
aler9
2023-08-12 20:19:29 +02:00
parent ca87733ded
commit 68d4bf8da0
10 changed files with 191 additions and 156 deletions

View File

@@ -328,7 +328,7 @@ func TestServerRecordRead(t *testing.T) {
}, fmt.Errorf("someone is already publishing")
}
stream = gortsplib.NewServerStream(ctx.Medias)
stream = gortsplib.NewServerStream(ctx.Server, ctx.Medias)
publisher = ctx.Session
return &base.Response{