mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 06:46:42 +08:00
replace new() with initialize() (#490)
This commit is contained in:
@@ -9,11 +9,13 @@ import "log"
|
||||
|
||||
func main() {
|
||||
// allocate the server.
|
||||
s := newServer()
|
||||
s := &server{}
|
||||
s.initialize()
|
||||
|
||||
// allocate the client.
|
||||
// give client access to the server.
|
||||
newClient(s)
|
||||
c := &client{s: s}
|
||||
c.initialize()
|
||||
|
||||
// start server and wait until a fatal error
|
||||
log.Printf("server is ready")
|
||||
|
Reference in New Issue
Block a user