This can be returned as a result of a failure to read quickly enough from
the DVR device. This appears to happen quite regularly on channel zap for
certain cards. It's non-fatal and the system will auto recover immediately.
For now I've left the exit on other error in, but have added an error
message so we know its happening (the biggest problem was this was happening
silently before).
This may also relate to #1134, so might be worth back porting to 3.2.
if (c < 0) {
if (errno == EAGAIN || errno == EINTR)
continue;
- else
+ else if (errno == EOVERFLOW) {
+ tvhlog(LOG_WARNING, "dvb", "\"%s\" read() EOVERFLOW",
+ tda->tda_identifier);
+ continue;
+ } else {
+ // TODO: should we try to recover?
+ tvhlog(LOG_ERR, "dvb", "\"%s\" read() error %d",
+ tda->tda_identifier, errno);
break;
+ }
}
r += c;