mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Fixed handling overlapping pending timers
This commit is contained in:
6
timers.c
6
timers.c
@@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: timers.c 2.17 2013/03/16 10:37:10 kls Exp $
|
||||
* $Id: timers.c 2.18 2013/03/29 15:37:16 kls Exp $
|
||||
*/
|
||||
|
||||
#include "timers.h"
|
||||
@@ -720,8 +720,10 @@ cTimer *cTimers::GetMatch(time_t t)
|
||||
for (cTimer *ti = First(); ti; ti = Next(ti)) {
|
||||
if (!ti->Recording() && ti->Matches(t)) {
|
||||
if (ti->Pending()) {
|
||||
if (ti->Index() > LastPending)
|
||||
if (ti->Index() > LastPending) {
|
||||
LastPending = ti->Index();
|
||||
return ti;
|
||||
}
|
||||
else
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user