Ticket #3439: sched.patch
File sched.patch, 2.0 KB (added by , 17 years ago) |
---|
-
programs/mythbackend/scheduler.cpp
1346 1346 // started the BE, 'auto' means it was started automatically 1347 1347 QString startupParam = "user"; 1348 1348 1349 RecIter firstRunIter = reclist.begin(); 1350 for ( ; firstRunIter != reclist.end(); firstRunIter++) 1351 if ((*firstRunIter)->recstatus == rsWillRecord) 1352 break; 1353 1349 1354 // have we been started automatically? 1350 if (( startIter != reclist.end()) &&1351 ((curtime.secsTo((* startIter)->startts) - prerollseconds)1355 if ((firstRunIter != reclist.end()) && 1356 ((curtime.secsTo((*firstRunIter)->startts) - prerollseconds) 1352 1357 < (idleWaitForRecordingTime * 60))) 1353 1358 { 1354 1359 VERBOSE(VB_IMPORTANT, … … 1548 1553 if (it.data()->IsBusy()) 1549 1554 recording = true; 1550 1555 } 1551 1556 1552 1557 if (!(m_mainServer->isClientConnected()) && !recording) 1553 1558 { 1554 1559 if (!idleSince.isValid()) 1555 1560 { 1556 if (startIter != reclist.end()) 1561 RecIter idleIter = reclist.begin(); 1562 for ( ; idleIter != reclist.end(); idleIter++) 1563 if ((*idleIter)->recstatus == rsWillRecord) 1564 break; 1565 1566 if (idleIter != reclist.end()) 1557 1567 { 1558 if (curtime.secsTo((* startIter)->startts) -1568 if (curtime.secsTo((*idleIter)->startts) - 1559 1569 prerollseconds > idleWaitForRecordingTime * 60) 1560 1570 { 1561 1571 idleSince = curtime;