mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
Refactored some errno handling.
This commit is contained in:
parent
ab2a47e3e7
commit
26be862d89
@ -94,8 +94,6 @@ void cSatipMsearch::Process(void)
|
|||||||
r = strtok_r(NULL, "\r\n", &s);
|
r = strtok_r(NULL, "\r\n", &s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (errno != EAGAIN && errno != EWOULDBLOCK)
|
|
||||||
error("Error %d reading in %s", errno, *ToString());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
rtcp.c
2
rtcp.c
@ -89,8 +89,6 @@ void cSatipRtcp::Process(void)
|
|||||||
if (offset >= 0)
|
if (offset >= 0)
|
||||||
tunerM.ProcessApplicationData(bufferM + offset, length);
|
tunerM.ProcessApplicationData(bufferM + offset, length);
|
||||||
}
|
}
|
||||||
if (errno != EAGAIN && errno != EWOULDBLOCK)
|
|
||||||
error("Error %d reading in %s", errno, *ToString());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
3
rtp.c
3
rtp.c
@ -136,9 +136,6 @@ void cSatipRtp::Process(void)
|
|||||||
}
|
}
|
||||||
} while (count >= eRtpPacketReadCount);
|
} while (count >= eRtpPacketReadCount);
|
||||||
|
|
||||||
if (errno != EAGAIN && errno != EWOULDBLOCK)
|
|
||||||
error("Error %d reading in %s [device %d]", errno, *ToString(), tunerM.GetId());
|
|
||||||
|
|
||||||
elapsed = processing.Elapsed();
|
elapsed = processing.Elapsed();
|
||||||
if (elapsed > 1)
|
if (elapsed > 1)
|
||||||
debug6("%s %d read(s) took %" PRIu64 " ms [device %d]", __PRETTY_FUNCTION__, count, elapsed, tunerM.GetId());
|
debug6("%s %d read(s) took %" PRIu64 " ms [device %d]", __PRETTY_FUNCTION__, count, elapsed, tunerM.GetId());
|
||||||
|
2
socket.c
2
socket.c
@ -129,7 +129,7 @@ int cSatipSocket::Read(unsigned char *bufferAddrP, unsigned int bufferLenP)
|
|||||||
if (len > 0)
|
if (len > 0)
|
||||||
return len;
|
return len;
|
||||||
} while (len > 0);
|
} while (len > 0);
|
||||||
ERROR_IF_RET(len < 0 && errno != EAGAIN, "recvmsg()", return -1);
|
ERROR_IF_RET(len < 0 && errno != EAGAIN && errno != EWOULDBLOCK, "recvmsg()", return -1);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user