mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed deleting expired timers if they have the VPS flag set, but the event they are assigned to doesn't have a VPS tag
This commit is contained in:
parent
8a85d7cd31
commit
c5910f7987
2
HISTORY
2
HISTORY
@ -6144,3 +6144,5 @@ Video Disk Recorder Revision History
|
|||||||
buffer has been accepted by the device (reported by Udo Richter).
|
buffer has been accepted by the device (reported by Udo Richter).
|
||||||
- Changed the EIT filter setup to save a few handles on devices that do hardware
|
- Changed the EIT filter setup to save a few handles on devices that do hardware
|
||||||
filtering.
|
filtering.
|
||||||
|
- Fixed deleting expired timers if they have the VPS flag set, but the event they
|
||||||
|
are assigned to doesn't have a VPS tag.
|
||||||
|
4
timers.c
4
timers.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: timers.c 2.1 2008/04/13 12:41:41 kls Exp $
|
* $Id: timers.c 2.2 2009/06/21 14:06:33 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "timers.h"
|
#include "timers.h"
|
||||||
@ -463,7 +463,7 @@ int cTimer::Matches(const cEvent *Event, int *Overlap) const
|
|||||||
|
|
||||||
bool cTimer::Expired(void) const
|
bool cTimer::Expired(void) const
|
||||||
{
|
{
|
||||||
return IsSingleEvent() && !Recording() && StopTime() + EXPIRELATENCY <= time(NULL) && (!HasFlags(tfVps) || !event);
|
return IsSingleEvent() && !Recording() && StopTime() + EXPIRELATENCY <= time(NULL) && (!HasFlags(tfVps) || !event || !event->Vps());
|
||||||
}
|
}
|
||||||
|
|
||||||
time_t cTimer::StartTime(void) const
|
time_t cTimer::StartTime(void) const
|
||||||
|
Loading…
Reference in New Issue
Block a user