mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 15:46:51 +08:00
change NewConnClient() signature
This commit is contained in:
@@ -23,10 +23,7 @@ func main() {
|
||||
}
|
||||
defer conn.Close()
|
||||
|
||||
rconn, err := gortsplib.NewConnClient(gortsplib.ConnClientConf{Conn: conn})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
rconn := gortsplib.NewConnClient(gortsplib.ConnClientConf{Conn: conn})
|
||||
|
||||
_, err = rconn.Options(u)
|
||||
if err != nil {
|
||||
@@ -51,7 +48,6 @@ func main() {
|
||||
}
|
||||
|
||||
frame := &gortsplib.InterleavedFrame{Content: make([]byte, 512*1024)}
|
||||
|
||||
for {
|
||||
err := rconn.ReadFrame(frame)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user