summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-08-19 14:37:17 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-08-19 14:37:17 +0200
commit73870fc90706ced04a25f19ee72595eb3a9e4d2b (patch)
treeb2b78fb4cd0370d294aea56a58a3876dd867e6b1 /dvbapi.c
parente994e3a4fef46bcd17aae84f04b552d2b32f7469 (diff)
downloadvdr-73870fc90706ced04a25f19ee72595eb3a9e4d2b.tar.gz
vdr-73870fc90706ced04a25f19ee72595eb3a9e4d2b.tar.bz2
Fixed broken recordings after a driver buffer overflow
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/dvbapi.c b/dvbapi.c
index a7565fed..e83d9d1c 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -7,7 +7,7 @@
* DVD support initially written by Andreas Schultz <aschultz@warp10.net>
* based on dvdplayer-0.5 by Matjaz Thaler <matjaz.thaler@guest.arnes.si>
*
- * $Id: dvbapi.c 1.107 2001/08/15 09:07:19 kls Exp $
+ * $Id: dvbapi.c 1.108 2001/08/19 14:36:38 kls Exp $
*/
//#define DVDDEBUG 1
@@ -545,9 +545,13 @@ void cRecordBuffer::Input(void)
}
else if (r < 0) {
if (FATALERRNO) {
- LOG_ERROR;
- if (errno != EBUFFEROVERFLOW)
+ if (errno == EBUFFEROVERFLOW) { // this error code is not defined in the library
+ esyslog(LOG_ERR, "ERROR (%s,%d): DVB driver buffer overflow", __FILE__, __LINE__);
+ }
+ else {
+ LOG_ERROR;
break;
+ }
}
}
if (time(NULL) - t > MAXBROKENTIMEOUT) {
@@ -2075,9 +2079,13 @@ void cTransferBuffer::Input(void)
}
else if (r < 0) {
if (FATALERRNO) {
- LOG_ERROR;
- if (errno != EBUFFEROVERFLOW)
+ if (errno == EBUFFEROVERFLOW) { // this error code is not defined in the library
+ esyslog(LOG_ERR, "ERROR (%s,%d): DVB driver buffer overflow", __FILE__, __LINE__);
+ }
+ else {
+ LOG_ERROR;
break;
+ }
}
}
}