mirror of
https://github.com/aler9/gortsplib
synced 2025-09-27 11:32:08 +08:00
fix crash in server examples
This commit is contained in:
@@ -148,7 +148,7 @@ func (sh *serverHandler) OnFrame(ctx *gortsplib.ServerHandlerOnFrameCtx) {
|
||||
func main() {
|
||||
// configure server
|
||||
s := &gortsplib.Server{
|
||||
Handler: &serverHandler{},
|
||||
Handler: &serverHandler{readers: make(map[*gortsplib.ServerSession]struct{})},
|
||||
UDPRTPAddress: ":8000",
|
||||
UDPRTCPAddress: ":8001",
|
||||
}
|
||||
|
Reference in New Issue
Block a user