mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
No longer checking for deleted recordings to be removed from the foreground thread
This commit is contained in:
parent
ffc0f49c12
commit
1d829aaf6d
@ -1069,6 +1069,8 @@ Rolf Ahrenberg <rahrenbe@cc.hut.fi>
|
||||
for setting the thread name, so that it can be seen in 'top -H'
|
||||
for replacing the Finnish language code "smi" with "suo"
|
||||
for adding cap_sys_nice to the capabilities that are not dropped
|
||||
for making VDR no longer check for deleted recordings to be removed from the
|
||||
foreground thread, to avoid blocking the main loop for too long
|
||||
|
||||
Ralf Klueber <ralf.klueber@vodafone.com>
|
||||
for reporting a bug in cutting a recording if there is only a single editing mark
|
||||
|
5
HISTORY
5
HISTORY
@ -6030,3 +6030,8 @@ Video Disk Recorder Revision History
|
||||
- No longer writing the video type into channels.conf if VPID is 0 (thanks to
|
||||
Oliver Endriss for reporting this).
|
||||
- Improved efficiency of cEIT::cEIT() (thanks to Tobias Bratfisch).
|
||||
|
||||
2009-04-12: Version 1.7.6
|
||||
|
||||
- No longer checking for deleted recordings to be removed from the foreground
|
||||
thread, to avoid blocking the main loop for too long (thanks to Rolf Ahrenberg).
|
||||
|
10
config.h
10
config.h
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: config.h 2.7 2009/01/30 16:05:34 kls Exp $
|
||||
* $Id: config.h 2.8 2009/04/12 14:20:52 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __CONFIG_H
|
||||
@ -22,13 +22,13 @@
|
||||
|
||||
// VDR's own version number:
|
||||
|
||||
#define VDRVERSION "1.7.5"
|
||||
#define VDRVERSNUM 10705 // Version * 10000 + Major * 100 + Minor
|
||||
#define VDRVERSION "1.7.6"
|
||||
#define VDRVERSNUM 10706 // Version * 10000 + Major * 100 + Minor
|
||||
|
||||
// The plugin API's version number:
|
||||
|
||||
#define APIVERSION "1.7.5"
|
||||
#define APIVERSNUM 10705 // Version * 10000 + Major * 100 + Minor
|
||||
#define APIVERSION "1.7.6"
|
||||
#define APIVERSNUM 10706 // Version * 10000 + Major * 100 + Minor
|
||||
|
||||
// When loading plugins, VDR searches them by their APIVERSION, which
|
||||
// may be smaller than VDRVERSION in case there have been no changes to
|
||||
|
13
recording.c
13
recording.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: recording.c 2.9 2009/01/30 16:27:19 kls Exp $
|
||||
* $Id: recording.c 2.10 2009/04/12 14:04:22 kls Exp $
|
||||
*/
|
||||
|
||||
#include "recording.h"
|
||||
@ -114,15 +114,8 @@ void RemoveDeletedRecordings(void)
|
||||
{
|
||||
static time_t LastRemoveCheck = 0;
|
||||
if (time(NULL) - LastRemoveCheck > REMOVECHECKDELTA) {
|
||||
if (!RemoveDeletedRecordingsThread.Active()) {
|
||||
cThreadLock DeletedRecordingsLock(&DeletedRecordings);
|
||||
for (cRecording *r = DeletedRecordings.First(); r; r = DeletedRecordings.Next(r)) {
|
||||
if (r->deleted && time(NULL) - r->deleted > DELETEDLIFETIME) {
|
||||
RemoveDeletedRecordingsThread.Start();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!RemoveDeletedRecordingsThread.Active())
|
||||
RemoveDeletedRecordingsThread.Start();
|
||||
LastRemoveCheck = time(NULL);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user