mirror of https://bitbucket.org/ausocean/av.git
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:
parent
a934e02e9a
commit
4da0bddf2f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue