Emergency exit if no data received for more than 5 seconds during recording

This commit is contained in:
Klaus Schmidinger 2001-06-02 12:20:13 +02:00
parent f615bfd841
commit b41adae497

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: dvbapi.c 1.67 2001/06/02 09:31:03 kls Exp $ * $Id: dvbapi.c 1.68 2001/06/02 12:20:13 kls Exp $
*/ */
#include "dvbapi.h" #include "dvbapi.h"
@ -534,7 +534,7 @@ void cRecordBuffer::Input(void)
break; break;
} }
} }
else if (time(NULL) - t > 5) { if (time(NULL) - t > 5) {
esyslog(LOG_ERR, "ERROR: video data stream broken"); esyslog(LOG_ERR, "ERROR: video data stream broken");
cThread::EmergencyExit(true); cThread::EmergencyExit(true);
} }