[mythtv] [PATCH] sd/wu fixes and enhancements...

Marc Kessels kessels at rijnh.nl
Thu Mar 4 18:22:46 EST 2004


first of all thanks for this patch, but based on your explanation I am 
afraid another bug can be found in the code to determine the wake-up time. 
In that case also the assumption was taken that the first item in the 
recList is the next recording, and apparantly that is not the case anymore. 
here is the code that contains the problem:

1045 void Scheduler::ShutdownServer(int prerollseconds)
1046 {
1047    m_isShuttingDown = true;
1048
1049    RecIter recIter = reclist.begin();
1050
1051    // set the wakeuptime if needed
1052    if (recIter != reclist.end())
1053    {
1054            ProgramInfo *nextRecording = (*recIter);
1055            QDateTime restarttime = nextRecording->startts.addSecs((-1) *
1056 
prerollseconds);

greetz and goodnight (for those who live near CET),
Marc


At 20:26 4-3-2004, you wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hi,
>
>This patch fixes the bug found and reported by Marc Kessels.
>Additionally I included the patch from Duncan Charlton.
>
>Other Changes:
>         o made the guessing of how the backend was started more VERBOSE
>         o added a 'StartupCommand' which is executed on startup. The 
> script which is
>executed, if one is given, gets 'auto' or 'user' as a parameter, so that the
>script can act diff'rently. This is very useful for people only running one
>machin with MBE and FE on the same machine.
>
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.4 (GNU/Linux)
>
>iD8DBQFAR4LJmauZIX3ydQURAsp4AKDOOJVRU5huqIZYPAdZoKIL3JamwgCdFQJz
>HiVvBjG+jLm/h5AX5Q3Iru4=
>=WYty
>-----END PGP SIGNATURE-----
>
>_______________________________________________
>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