mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
client: cleanup
This commit is contained in:
@@ -1798,8 +1798,7 @@ func (c *Client) WritePacketRTCP(trackID int, payload []byte) error {
|
||||
return c.tracks[trackID].udpRTCPListener.write(payload)
|
||||
|
||||
default: // TCP
|
||||
channel := c.tracks[trackID].tcpChannel
|
||||
channel++
|
||||
channel := c.tracks[trackID].tcpChannel + 1
|
||||
|
||||
// a mutex is needed here since bufio.Writer is not thread safe.
|
||||
c.tcpWriteMutex.Lock()
|
||||
|
Reference in New Issue
Block a user