Merge branch 'main' into v4

This commit is contained in:
aler9
2023-08-25 16:10:42 +02:00
2 changed files with 10 additions and 2 deletions

View File

@@ -1,6 +1,5 @@
/*
Package gortsplib is a RTSP 1.0 library for the Go programming language,
written for rtsp-simple-server.
Package gortsplib is a RTSP 1.0 library for the Go programming language.
Examples are available at https://github.com/bluenviron/gortsplib/tree/main/examples
*/
@@ -10,6 +9,7 @@ import (
"context"
"crypto/tls"
"fmt"
"log"
"net"
"strconv"
"strings"
@@ -388,14 +388,17 @@ func (c *Client) Start(scheme string, host string) error {
}
if c.OnTransportSwitch == nil {
c.OnTransportSwitch = func(err error) {
log.Println(err.Error())
}
}
if c.OnPacketLost == nil {
c.OnPacketLost = func(err error) {
log.Println(err.Error())
}
}
if c.OnDecodeError == nil {
c.OnDecodeError = func(err error) {
log.Println(err.Error())
}
}