mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed handling overlapping pending timers
This commit is contained in:
parent
f30ac5075e
commit
965feab54f
@ -3116,6 +3116,7 @@ Mikael H
|
|||||||
Matthias Senzel <matthias.senzel@t-online.de>
|
Matthias Senzel <matthias.senzel@t-online.de>
|
||||||
for reporting a problem with switching back to live viewing after replay in a setup
|
for reporting a problem with switching back to live viewing after replay in a setup
|
||||||
with device bonding
|
with device bonding
|
||||||
|
for reporting a problem with handling overlapping pending timers
|
||||||
|
|
||||||
Marek Nazarko <mnazarko@gmail.com>
|
Marek Nazarko <mnazarko@gmail.com>
|
||||||
for translating OSD texts to the Polish language
|
for translating OSD texts to the Polish language
|
||||||
|
1
HISTORY
1
HISTORY
@ -7779,3 +7779,4 @@ Video Disk Recorder Revision History
|
|||||||
- Updated the Lithuanian OSD texts (thanks to Valdemaras Pipiras).
|
- Updated the Lithuanian OSD texts (thanks to Valdemaras Pipiras).
|
||||||
- Fixed the description of the 'M' parameter of channel definitions in vdr.5.
|
- Fixed the description of the 'M' parameter of channel definitions in vdr.5.
|
||||||
- Updated the French OSD texts (thanks to Dominique Plu).
|
- Updated the French OSD texts (thanks to Dominique Plu).
|
||||||
|
- Fixed handling overlapping pending timers (reported by Matthias Senzel).
|
||||||
|
6
timers.c
6
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.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"
|
#include "timers.h"
|
||||||
@ -720,8 +720,10 @@ cTimer *cTimers::GetMatch(time_t t)
|
|||||||
for (cTimer *ti = First(); ti; ti = Next(ti)) {
|
for (cTimer *ti = First(); ti; ti = Next(ti)) {
|
||||||
if (!ti->Recording() && ti->Matches(t)) {
|
if (!ti->Recording() && ti->Matches(t)) {
|
||||||
if (ti->Pending()) {
|
if (ti->Pending()) {
|
||||||
if (ti->Index() > LastPending)
|
if (ti->Index() > LastPending) {
|
||||||
LastPending = ti->Index();
|
LastPending = ti->Index();
|
||||||
|
return ti;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user