mirror of
https://github.com/aler9/gortsplib
synced 2025-09-30 21:12:18 +08:00
replace New* with Initialize (#723)
This commit is contained in:
@@ -117,7 +117,11 @@ func (sh *serverHandler) OnAnnounce(ctx *gortsplib.ServerHandlerOnAnnounceCtx) (
|
||||
}
|
||||
|
||||
// create the stream and save the publisher
|
||||
sh.stream = gortsplib.NewServerStream(sh.s, ctx.Description)
|
||||
sh.stream = &gortsplib.ServerStream{
|
||||
Server: sh.s,
|
||||
Desc: ctx.Description,
|
||||
}
|
||||
sh.stream.Initialize()
|
||||
sh.publisher = ctx.Session
|
||||
|
||||
return &base.Response{
|
||||
|
Reference in New Issue
Block a user