mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	Emergency exit if no data received for more than 5 seconds during recording
This commit is contained in:
		
							
								
								
									
										4
									
								
								dvbapi.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								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.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); | ||||||
|          } |          } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user