1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

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
* 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"
@ -534,7 +534,7 @@ void cRecordBuffer::Input(void)
break;
}
}
else if (time(NULL) - t > 5) {
if (time(NULL) - t > 5) {
esyslog(LOG_ERR, "ERROR: video data stream broken");
cThread::EmergencyExit(true);
}