Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#2883 closed defect (fixed)

Wakeup time set by mythbackend into BIOS ignore early/late record start

Reported by: michele.sardo@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: 0.20
Severity: medium Keywords:
Cc: Ticket locked: no

Description

When mythbackend decide to shutdown a mythtv box and program the RTC alarm to switch on the box for a scheduled recording, the time set in the BIOS RTC alarm takes into account the beginning of the program scheduled to be recorded, but ignores the offset(early/late) added by the user. My experiments shows that this changes in the file mythtv-0.20/programs/mythbackend/scheduler.cpp

#ifdef ORIGINAL_CODE

QDateTime restarttime = nextRecording->startts.addSecs((-1) *

prerollseconds);

#else

/* Fixed code */ QDateTime restarttime = nextRecording->recstartts.addSecs((-1) *

prerollseconds);

#endif

fixes the problems, but I'm not entirely sure it is the correct fix.

Change History (3)

comment:1 Changed 13 years ago by y_b(at) ifrance.com Yves de Brauer

I have tested it for two weeks and it works just fine. I have checked the log and all is good.

I am using 0.20-fixes

Yves

comment:2 Changed 13 years ago by paulh

Resolution: fixed
Status: newclosed

(In [12776]) The scheduler should be using ProgramInfo::recstartts when setting the next wakeup time so it allows for any start early/late offsets. Fixes #2883. Fix by Michele Sardo. Tested by Yves de Brauer.

comment:3 Changed 13 years ago by paulh

(In [12777]) Merge [12776] from trunk into the fixes branch. The scheduler should be using ProgramInfo::recstartts when setting the next wakeup time so it allows for any start early/late offsets. Refs #2883. Fix by Michele Sardo. Tested by Yves de Brauer.

Note: See TracTickets for help on using tickets.