Permalink
Browse files

Fix 0ms sleep time calculation in scheduler.

Don't check the pending list for programs that won't record.  They'll
never be there and don't need the 30 second padding.

Fixes #10279 .
  • Loading branch information...
gigem committed Jul 10, 2012
1 parent 067ebe9 commit 88817964d66d0a18c43f3ff370994108ebe46c13
Showing with 2 additions and 1 deletion.
  1. +2 −1 mythtv/programs/mythbackend/scheduler.cpp
@@ -1977,7 +1977,8 @@ int Scheduler::CalcTimeToNextHandleRecordingEvent(
int secs_to_next = curtime.secsTo((*i)->GetRecordingStartTime());
- if (!recPendingList[(*i)->MakeUniqueSchedulerKey()])
+ if ((*i)->GetRecordingStatus() == rsWillRecord &&
+ !recPendingList[(*i)->MakeUniqueSchedulerKey()])
secs_to_next -= 30;
if (secs_to_next < 0)

0 comments on commit 8881796

Please sign in to comment.