mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
In case the video data stream is broken the log message will come only every 5 seconds
This commit is contained in:
parent
297e727a59
commit
e51a725c2d
2
HISTORY
2
HISTORY
@ -342,3 +342,5 @@ Video Disk Recorder Revision History
|
||||
a recording is interrupted due to higher priority.
|
||||
- Implemented safe writing of config files (first writes into a temporary file
|
||||
and then renames it).
|
||||
- In case the video data stream is broken the log message will come only every
|
||||
5 seconds.
|
||||
|
6
dvbapi.c
6
dvbapi.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: dvbapi.c 1.47 2001/01/07 17:10:02 kls Exp $
|
||||
* $Id: dvbapi.c 1.48 2001/01/14 10:15:26 kls Exp $
|
||||
*/
|
||||
|
||||
#include "dvbapi.h"
|
||||
@ -791,8 +791,10 @@ void cRecordBuffer::Action(void)
|
||||
if (!WriteWithTimeout())
|
||||
break;
|
||||
}
|
||||
if (r < 0 || (r == 0 && time(NULL) - t > 3))
|
||||
if (r < 0 || (r == 0 && time(NULL) - t > 5)) {
|
||||
esyslog(LOG_ERR, "ERROR: video data stream broken");
|
||||
t = time(NULL);
|
||||
}
|
||||
}
|
||||
SetPlayMode(videoDev, VID_PLAY_RESET);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user