Ticket #10279: 10279-v1.patch

File 10279-v1.patch, 742 bytes (added by danielk, 12 years ago)

David's patch + comment ; this should fix the problem it just needs some testing before applying.

  • mythtv/programs/mythbackend/scheduler.cpp

    diff --git a/mythtv/programs/mythbackend/scheduler.cpp b/mythtv/programs/mythbackend/scheduler.cpp
    index a23b55b..34751a5 100644
    a b int Scheduler::CalcTimeToNextHandleRecordingEvent( 
    19771977
    19781978        int secs_to_next = curtime.secsTo((*i)->GetRecordingStartTime());
    19791979
    1980         if (!recPendingList[(*i)->MakeUniqueSchedulerKey()])
     1980        // We want to wake up to send pending record when desireable.
     1981        if (((*i)->GetRecordingStatus() == rsWillRecord) &&
     1982            !recPendingList.contains((*i)->MakeUniqueSchedulerKey()))
     1983        {
    19811984            secs_to_next -= 30;
     1985        }
    19821986
    19831987        if (secs_to_next < 0)
    19841988        {