add ConnClient.Tracks(); remove Tracks from DialRead returned values

This commit is contained in:
aler9
2020-10-10 15:29:03 +02:00
parent d33ee9a73e
commit 6e4eaaea18
5 changed files with 25 additions and 14 deletions

View File

@@ -79,7 +79,7 @@ func TestConnClientDialReadUDP(t *testing.T) {
time.Sleep(1 * time.Second)
conn, _, err := DialRead("rtsp://localhost:8554/teststream", StreamProtocolUDP)
conn, err := DialRead("rtsp://localhost:8554/teststream", StreamProtocolUDP)
require.NoError(t, err)
defer conn.Close()
@@ -118,7 +118,7 @@ func TestConnClientDialReadTCP(t *testing.T) {
time.Sleep(1 * time.Second)
conn, _, err := DialRead("rtsp://localhost:8554/teststream", StreamProtocolTCP)
conn, err := DialRead("rtsp://localhost:8554/teststream", StreamProtocolTCP)
require.NoError(t, err)
defer conn.Close()