revid: rtmpSender.load no longer copies data

This commit is contained in:
Saxon 2019-03-14 08:18:57 +10:30
parent 7c54775291
commit 032ffcb8b6
1 changed files with 1 additions and 2 deletions

View File

@ -396,8 +396,7 @@ func newRtmpSender(url string, timeout uint, retries int, retry bool, log func(l
}
func (s *rtmpSender) load(d []byte) error {
s.data = make([]byte, len(d))
copy(s.data, d)
s.data = d
return nil
}