Ticket #11108: schedpatch.diff

File schedpatch.diff, 570 bytes (added by mythwiki@…, 7 years ago)

Lightly tested patch that solves the issue for me

  • mythtv/programs/mythbackend/scheduler.cpp

    a b void Scheduler::run(void) 
    18091809        {
    18101810            int msecs = CalcTimeToNextHandleRecordingEvent(
    18111811                curtime, startIter, reclist, prerollseconds, maxSleep);
     1812
     1813            msecs -= prerollseconds * 1000;
     1814            if (msecs < 1)
     1815                msecs = 1;
     1816
    18121817            LOG(VB_SCHEDULE, LOG_INFO,
    18131818                QString("sleeping for %1 ms (s2n: %2 sr: %3)")
    18141819                    .arg(msecs).arg(secs_to_next).arg(schedRunTime));