client: remove default client

This commit is contained in:
aler9
2021-10-31 13:01:36 +01:00
committed by Alessandro Ros
parent a66a038a23
commit fdb0d70870
14 changed files with 54 additions and 36 deletions

View File

@@ -130,7 +130,9 @@ func TestClientReadTracks(t *testing.T) {
require.NoError(t, err)
}()
conn, err := DialRead("rtsp://localhost:8554/teststream")
c := Client{}
conn, err := c.DialRead("rtsp://localhost:8554/teststream")
require.NoError(t, err)
defer conn.Close()
@@ -801,7 +803,9 @@ func TestClientReadNoContentBase(t *testing.T) {
require.NoError(t, err)
}()
conn, err := DialRead("rtsp://localhost:8554/teststream")
c := Client{}
conn, err := c.DialRead("rtsp://localhost:8554/teststream")
require.NoError(t, err)
conn.Close()
}
@@ -1039,7 +1043,9 @@ func TestClientReadAutomaticProtocol(t *testing.T) {
require.NoError(t, err)
}()
conn, err := DialRead("rtsp://localhost:8554/teststream")
c := Client{}
conn, err := c.DialRead("rtsp://localhost:8554/teststream")
require.NoError(t, err)
frameRecv := make(chan struct{})
@@ -1522,7 +1528,9 @@ func TestClientReadRedirect(t *testing.T) {
})
}()
conn, err := DialRead("rtsp://localhost:8554/path1")
c := Client{}
conn, err := c.DialRead("rtsp://localhost:8554/path1")
require.NoError(t, err)
frameRecv := make(chan struct{})