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 {
|
func (s *rtmpSender) load(d []byte) error {
|
||||||
s.data = make([]byte, len(d))
|
s.data = d
|
||||||
copy(s.data, d)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue