[mythtv] possible error in auto-shutdown routine
Marc Kessels
kessels at rijnh.nl
Thu Mar 4 12:22:36 EST 2004
I am afraid this will not help, since this part of the code will be
executed also a couple of lines later. (outside of the if statement where
you are inserting it now) and apparently that does not solve the problem.
maybe it should be put after
> 919 if ((recIter = reclist.begin()) !=
> 920 reclist.end())
to set the recIter point to the first next recording.
Using some debug printing I found out that the time to the next program is
negative, indicating that it is indeed pointing towards the just recorded
program.
Marc
At 17:51 4-3-2004, you wrote:
>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");
>_______________________________________________
>mythtv-dev mailing list
>mythtv-dev at mythtv.org
>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
More information about the mythtv-dev
mailing list