[mythtv] Next Scheduler Patch
David Engel
dlengel at attbi.com
Tue Feb 24 20:59:12 EST 2004
On Tue, Feb 24, 2004 at 05:10:27PM -0600, David Engel wrote:
> The attached patch implements the next, and major, part of my overhaul
> of the MythTV scheduler. It has been in use privately for a week now
> without serious problems so it's time to give it some wider testing
> before it goes into CVS.
Wouldn't you know it -- post a patch and then immediately find a bug
in it. :(
A fix for running mythbackend --printsched is attached.
David
--
David Engel
dlengel at attbi.com
-------------- next part --------------
--- programs/mythbackend/scheduler.cpp.orig 2004-02-24 19:53:08.000000000 -0600
+++ programs/mythbackend/scheduler.cpp 2004-02-24 19:54:41.000000000 -0600
@@ -230,21 +230,16 @@
void Scheduler::FillRecordListFromMaster(void)
{
- vector<ProgramInfo *> reclist;
+ vector<ProgramInfo *> remotelist;
- RemoteGetAllPendingRecordings(reclist);
+ RemoteGetAllPendingRecordings(remotelist);
- vector<ProgramInfo *>::iterator pgiter = reclist.begin();
+ vector<ProgramInfo *>::iterator pgiter = remotelist.begin();
QMutexLocker lockit(reclist_lock);
- for (; pgiter != reclist.end(); pgiter++)
- {
- ProgramInfo *pginfo = (*pgiter);
- pginfo->schedulerid = pginfo->startts.toString() + "_" + pginfo->chanid;
-
+ for (; pgiter != remotelist.end(); pgiter++)
reclist.push_back(*pgiter);
- }
}
void Scheduler::PrintList(bool onlyFutureRecordings)
More information about the mythtv-dev
mailing list