[mythtv] possible error in auto-shutdown routine
David Engel
gigem at comcast.net
Thu Mar 4 11:51:52 EST 2004
On Thu, Mar 04, 2004 at 01:40:44PM +0100, Marc Kessels wrote:
> I found a problem in the auto-shutdown routine. If my pc wakes up to
> perform a recording, it will never sleep again after that recording. If I
Please try this patch.
David
--
David Engel
gigem at comcast.net
Index: programs/mythbackend/scheduler.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythbackend/scheduler.cpp,v
retrieving revision 1.82
diff -u -r1.82 scheduler.cpp
--- programs/mythbackend/scheduler.cpp 2 Mar 2004 02:40:19 -0000 1.82
+++ programs/mythbackend/scheduler.cpp 4 Mar 2004 16:50:33 -0000
@@ -728,9 +728,13 @@
FillRecordLists();
PrintList();
lastupdate = curtime;
- startIter = reclist.begin();
statuschanged = true;
+ startIter = reclist.begin();
+ for ( ; startIter != reclist.end(); startIter++)
+ if ((*startIter)->recstatus == rsWillRecord)
+ break;
+
// Determine if the user wants us to start recording early
// and by how many seconds
prerollseconds = gContext->GetNumSetting("RecordPreRoll");
More information about the mythtv-dev
mailing list