mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
replace new() with initialize() (#490)
This commit is contained in:
@@ -15,9 +15,7 @@ type server struct {
|
||||
stream *gortsplib.ServerStream
|
||||
}
|
||||
|
||||
func newServer() *server {
|
||||
s := &server{}
|
||||
|
||||
func (s *server) initialize() {
|
||||
// configure the server
|
||||
s.s = &gortsplib.Server{
|
||||
Handler: s,
|
||||
@@ -28,8 +26,6 @@ func newServer() *server {
|
||||
MulticastRTPPort: 8002,
|
||||
MulticastRTCPPort: 8003,
|
||||
}
|
||||
|
||||
return s
|
||||
}
|
||||
|
||||
// called when a connection is opened.
|
||||
|
Reference in New Issue
Block a user