[vdr] [PATCH] VDR 1.7.42: fix pending timers

Klaus Schmidinger Klaus.Schmidinger at tvdr.de
Tue Mar 26 09:23:53 CET 2013


There has been a bug report regarding overlapping "pending" timers.
The original posting can be found here:

   http://www.vdr-portal.de/board17-developer/board97-vdr-core/p1134445-probleme-mit-aufnahmepriorit%C3%A4ten-und-wahrscheinlich-devicebonding/#post1134445

The diagram "version 2" shows 3 timers with different priorities,
where timers 1 and 3 can record simultaneously, while timer 2 can
only record by itself. This is due to limitations imposed by
"device bonding", but similar situations may also occur in other
environments.

The problem here is that at time 'C', timer 3 starts and forces timer
2 to stop due to its higher priority. Now timer 1 would also be able to
record, but it doesn't do so until timer 2 expires. This is caused by
timers 1 and 2 being in the "pending" state, but timer 2 always being
chosen in cTimers::GetMatch(time_t t) due to its higher priority.

The attached patch fixes this.
Please apply and test it. I'm considering to include this in the
final version 2.0.0 which shall be released on sunday, so I need
to know whether it causes any negative side effects.

Klaus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-1.7.42-fixpendingtimers.diff
Type: text/x-patch
Size: 460 bytes
Desc: not available
URL: <http://www.linuxtv.org/pipermail/vdr/attachments/20130326/abda5301/attachment.bin>


More information about the vdr mailing list