Skip to content

Commit

Permalink
Fix 0ms sleep time calculation in scheduler.
Browse files Browse the repository at this point in the history
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 8881796
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/programs/mythbackend/scheduler.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 8881796

Please sign in to comment.