revid/revid.go: intialising err from rtp send

This commit is contained in:
saxon 2019-02-08 18:14:33 +10:30
parent f4be7e72d7
commit ad04893432
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ func (p *packer) Write(frame []byte) (int, error) {
// If we have an rtp sender bypass ringbuffer and give straight to sender
if p.owner.rtpSender != nil {
err = p.owner.rtpSender.send(frame)
err := p.owner.rtpSender.send(frame)
if err != nil {
p.owner.config.Logger.Log(logger.Error, pkg+"rtp send failed with error", "error", err.Error())
}