mirror of
https://github.com/aler9/gortsplib
synced 2025-10-31 02:26:57 +08:00
client: support servers that send frames with a frequency lower than 1sec
This commit is contained in:
@@ -595,7 +595,7 @@ func (cc *ClientConn) runBackgroundPlayTCP() error {
|
|||||||
// therefore, we disable the deadline and perform check with a ticker.
|
// therefore, we disable the deadline and perform check with a ticker.
|
||||||
cc.nconn.SetReadDeadline(time.Time{})
|
cc.nconn.SetReadDeadline(time.Time{})
|
||||||
|
|
||||||
var lastFrameTime int64
|
lastFrameTime := time.Now().Unix()
|
||||||
|
|
||||||
readerDone := make(chan error)
|
readerDone := make(chan error)
|
||||||
go func() {
|
go func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user