[mythtv] Proposed scheduler patch
Bruce Markey
bjm at lvcm.com
Sun Feb 8 01:45:24 EST 2004
David Engel wrote:
> On Sat, Feb 07, 2004 at 04:20:54PM -0800, Bruce Markey wrote:
>
>>On a single tuner system, the input and card do not get
>>set correctly causing the MBE to exit on "invalid cardid 0".
>>This did not happen on a dual tuner system.
>
>
> In Scheduler::MarkKnownInputs, change this line
>
> if (first->inputid == -1 && Recording(first))
>
> to this line
>
> if (first->inputid <= 0 && first->recstatus == rsWillRecord)
>
> I'm testing to see if this also clears up a problem I'm seeing.
Confirmed fix.
-- bjm
PS attached is a mod to PrintList that shows subtitles and
end times. It drops the day of the week and uses 24 hour times
but I think it makes it a little easier to see what's going on.
I wouldn't want to check this in while you're actively working
on scheduler.cpp .
-------------- next part --------------
Index: programs/mythbackend/scheduler.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythbackend/scheduler.cpp,v
retrieving revision 1.73
diff -u -r1.73 scheduler.cpp
--- programs/mythbackend/scheduler.cpp 6 Feb 2004 23:45:05 -0000 1.73
+++ programs/mythbackend/scheduler.cpp 8 Feb 2004 06:41:40 -0000
@@ -248,10 +248,11 @@
void Scheduler::PrintList(bool onlyFutureRecordings)
{
QDateTime now = QDateTime::currentDateTime();
+ QString episode;
cout << "--- print list start ---\n";
list<ProgramInfo *>::iterator i = recordingList.begin();
- cout << "Title Chan ChID StartTime S I C "
+ cout << "Title Chan ChID Day Start End S I C "
" C R O N Priority" << endl;
for (; i != recordingList.end(); i++)
@@ -263,9 +264,16 @@
(first->recstartts < now)))
continue;
- cout << first->title.local8Bit().leftJustify(22, ' ', true)
+ if (first->subtitle > " ")
+ episode = QString("%1 - \"%2\"").arg(first->title.local8Bit())
+ .arg(first->subtitle.local8Bit());
+ else
+ episode = first->title.local8Bit();
+
+ cout << episode.leftJustify(26, ' ', true)
<< first->chanstr.rightJustify(4, ' ') << " " << first->chanid
- << first->recstartts.toString(" MMM dd hh:mmap ")
+ << first->recstartts.toString(" dd hh:mm-")
+ << first->recendts.toString("hh:mm ")
<< first->sourceid
<< " " << first->inputid << " " << first->cardid << " "
<< first->conflicting << " " << first->recording << " "
More information about the mythtv-dev
mailing list