mirror of https://bitbucket.org/ausocean/av.git
revid: do not double report returned error
This commit is contained in:
parent
3a31812e0a
commit
ec3eefeb37
|
@ -321,9 +321,10 @@ func (r *Revid) packClips() {
|
|||
}
|
||||
_, err := r.ringBuffer.Write(frame)
|
||||
if err != nil {
|
||||
r.Log(Error, err.Error())
|
||||
if err == ring.ErrDropped {
|
||||
r.Log(Warning, fmt.Sprintf("dropped %d byte frame", len(frame)))
|
||||
} else {
|
||||
r.Log(Error, err.Error())
|
||||
}
|
||||
}
|
||||
packetCount++
|
||||
|
|
Loading…
Reference in New Issue