mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +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)
|
return c.tracks[trackID].udpRTCPListener.write(payload)
|
||||||
|
|
||||||
default: // TCP
|
default: // TCP
|
||||||
channel := c.tracks[trackID].tcpChannel
|
channel := c.tracks[trackID].tcpChannel + 1
|
||||||
channel++
|
|
||||||
|
|
||||||
// a mutex is needed here since bufio.Writer is not thread safe.
|
// a mutex is needed here since bufio.Writer is not thread safe.
|
||||||
c.tcpWriteMutex.Lock()
|
c.tcpWriteMutex.Lock()
|
||||||
|
Reference in New Issue
Block a user