mirror of https://bitbucket.org/ausocean/av.git
revid: rtmpSender.load no longer copies data
This commit is contained in:
parent
7c54775291
commit
032ffcb8b6
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue