revid: improved error message in rtpSender.send when there is no data provided but also when there is no data in the senders chunk

This commit is contained in:
saxon 2019-01-03 12:08:41 +10:30
parent a934e02e9a
commit 4da0bddf2f
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ func (s *rtpSender) send(d []byte) error {
case s.chunk != nil:
_, err = s.chunk.WriteTo(s.encoder)
default:
err = errors.New("no data provided, but rtpSender chunk is empty")
err = errors.New("no data to send provided, but rtpSender chunk is also empty")
}
return err
}