mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
ServerUDPListener: set writeTimeout once
This commit is contained in:
@@ -809,14 +809,14 @@ func (sc *ServerConn) WriteFrame(trackID int, streamType StreamType, payload []b
|
||||
track := sc.tracks[trackID]
|
||||
|
||||
if streamType == StreamTypeRTP {
|
||||
return sc.conf.UDPRTPListener.write(sc.conf.WriteTimeout, payload, &net.UDPAddr{
|
||||
return sc.conf.UDPRTPListener.write(payload, &net.UDPAddr{
|
||||
IP: sc.ip(),
|
||||
Zone: sc.zone(),
|
||||
Port: track.rtpPort,
|
||||
})
|
||||
}
|
||||
|
||||
return sc.conf.UDPRTCPListener.write(sc.conf.WriteTimeout, payload, &net.UDPAddr{
|
||||
return sc.conf.UDPRTCPListener.write(payload, &net.UDPAddr{
|
||||
IP: sc.ip(),
|
||||
Zone: sc.zone(),
|
||||
Port: track.rtcpPort,
|
||||
|
Reference in New Issue
Block a user