mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Increased timeout until reporting 'video data stream broken' when recording
This commit is contained in:
parent
bdfeda21c7
commit
9639cfdd46
1
HISTORY
1
HISTORY
@ -606,3 +606,4 @@ Video Disk Recorder Revision History
|
|||||||
tuning the primary interface (which can't receive this channel, anyway).
|
tuning the primary interface (which can't receive this channel, anyway).
|
||||||
Apparently the driver gets irritated when the channel is switched and a
|
Apparently the driver gets irritated when the channel is switched and a
|
||||||
replay session is started immediately after that.
|
replay session is started immediately after that.
|
||||||
|
- Increased timeout until reporting "video data stream broken" when recording.
|
||||||
|
8
dvbapi.c
8
dvbapi.c
@ -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.94 2001/07/29 09:00:19 kls Exp $
|
* $Id: dvbapi.c 1.95 2001/07/29 09:49:33 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dvbapi.h"
|
#include "dvbapi.h"
|
||||||
@ -66,6 +66,10 @@ extern "C" {
|
|||||||
// The number of frames to back up when resuming an interrupted replay session:
|
// The number of frames to back up when resuming an interrupted replay session:
|
||||||
#define RESUMEBACKUP (10 * FRAMESPERSEC)
|
#define RESUMEBACKUP (10 * FRAMESPERSEC)
|
||||||
|
|
||||||
|
// The maximum time we wait before assuming that a recorded video data stream
|
||||||
|
// is broken:
|
||||||
|
#define MAXBROKENTIMEOUT 30 // seconds
|
||||||
|
|
||||||
#define CHECK(s) { if ((s) < 0) LOG_ERROR; } // used for 'ioctl()' calls
|
#define CHECK(s) { if ((s) < 0) LOG_ERROR; } // used for 'ioctl()' calls
|
||||||
|
|
||||||
typedef unsigned char uchar;
|
typedef unsigned char uchar;
|
||||||
@ -534,7 +538,7 @@ void cRecordBuffer::Input(void)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (time(NULL) - t > 10) {
|
if (time(NULL) - t > MAXBROKENTIMEOUT) {
|
||||||
esyslog(LOG_ERR, "ERROR: video data stream broken");
|
esyslog(LOG_ERR, "ERROR: video data stream broken");
|
||||||
cThread::EmergencyExit(true);
|
cThread::EmergencyExit(true);
|
||||||
t = time(NULL);
|
t = time(NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user