Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Timerprogramming BUG in Master-Timer



#include <hallo.h>



Thanks to the mail from Ansgar Jonietz i took the time today to hunt down
a timer programming bug i introduced in Master-Timer 0.5.0 (Maybe even
down to 0.1. But if the versions below 0.5.0 are affected then only the
second part of the patch has to be applied)

This BUG prevents a timer directly following another if they are in
alphabetical order.

e.g.
Babylon 5 AFTER Voyager works.
Voyager AFTER Babylon 5 doesn't work.
or (a variant of the reported problem)
Voyager after Voyager doesn't work.


To fix this bug:
In "timer.pl" Function "addtimer"

Line:
$ctime2 = $time2 + $$rTEntry2{duration} + $$rTEntry2{marginstop};
Must be changed to:
$ctime2 = $time2 + $$rTEntry2{duration};

Line:
if (($time >= $ctime) && ($time <= $ctime2)) {
Must be changed to:
if (($time >= $ctime) && ($time < $ctime2)) {






Bis denn

-- 
Real Programmers consider "what you see is what you get" to be just as 
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated, 
cryptic, powerful, unforgiving, dangerous.





Home | Main Index | Thread Index