revid/revid.go: logging unexpected EOF from input source

This commit is contained in:
Saxon 2020-01-25 09:42:32 +10:30
parent f82ab42246
commit a0a99e17db
1 changed files with 3 additions and 1 deletions

View File

@ -872,7 +872,9 @@ func (r *Revid) processFrom(in device.AVDevice, delay time.Duration) {
r.cfg.Logger.Log(logger.Info, pkg+"lexing")
err = r.lexTo(r.filters[0], in, delay)
switch err {
case nil, io.EOF, io.ErrUnexpectedEOF:
case nil, io.EOF:
case io.ErrUnexpectedEOF:
r.cfg.Logger.Log(logger.Info, pkg+"unexpected EOF from input")
default:
r.err <- err
}