mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 14:52:46 +08:00
fix race condition in WritePacketRTP() (#334)
This commit is contained in:
@@ -69,7 +69,7 @@ func (sm *serverStreamMedia) allocateMulticastHandler(s *Server) error {
|
||||
|
||||
func (sm *serverStreamMedia) WritePacketRTPWithNTP(ss *ServerStream, pkt *rtp.Packet, ntp time.Time) {
|
||||
byts := make([]byte, udpMaxPayloadSize)
|
||||
n, err := pkt.MarshalTo(byts)
|
||||
n, err := rtpPacketMarshalToSafe(pkt, byts)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user