opensubscriber
   Find in this group all groups
 
Unknown more information…

m : mythtv-dev@mythtv.org 20 April 2006 • 9:28PM -0400

Re: [mythtv] More scheduling scheduler
by Paul Andreassen

REPLY TO AUTHOR
 
REPLY TO GROUP




On Wed, 19 Apr 2006 08:51 am, David Engel wrote:
> On Tue, Apr 18, 2006 at 10:45:02PM +1000, Paul Andreassen wrote:
> > Patch for softpad branch.
>
> Thanks.

Thanks for looking at it.

> > @@ -186,7 +186,7 @@ static bool comp_redundant(ProgramInfo *
> >
> >      int asoft = (a->softstart != 0) + (a->softend != 0);
> >      int bsoft = (b->softstart != 0) + (b->softend != 0);
> > -    return asoft <= bsoft;
> > +    return asoft < bsoft;
> >  }
>
> This shouldn't make any difference whatsoever.  Did you see one?

No.  Just trying to be consistent with the rest of the code.  They're all <.

> > @@ -847,7 +848,7 @@ void Scheduler::SchedNewRecords(void)
> >              }
> >              else
> >              {
> > -                retrylist.push_front(p);
> > +                retrylist.push_back(p);
> >                  PrintRec(p, "  #");
> >                  PrintRec(*k, "     !");
>
> I've explained why this code is the way it is.  It isn't changing so
> please quit including this change.

OK.  It just made life simpler. ;-)

> > @@ -560,6 +560,10 @@ void ProgramInfo::ToMap(QMap<QString, QS
> >
> >      progMap["time"] = timeNow.time().toString(timeFormat);
> >
> > +    progMap["timebuffer"] = QString("(-%1 +%2)")
> > +                            .arg((recstartts.secsTo(startts)+30)/60)
> > +                            .arg((endts.secTo(recendts)+30)/60);
> > +
> >      MSqlQuery query(MSqlQuery::InitCon());
>
> Please make this conditional in some way.  IOW, if there's no extra
> padding, hard or soft, don't display anything extra.

No problem.  This shows the difference between the official broadcast time and
the time we set.  Should we also include the preroll/overtime or is that to
confusing?

> > @@ -479,6 +479,7 @@ void ViewScheduled::updateInfo(QPainter
> >          if (p)
> >          {
> >              p->ToMap(infoMap);
> > +            infoMap["timedate"]+=" "+infoMap["timebuffer"]
> >              container->ClearAllText();
> >              container->SetText(infoMap);
> >          }
>
> This should be handled differently.  Either the "timebuffer" part
> should be conditionally added to "timedate" in PI::ToMap or it should
> be kept completely separate and left to the theme to decide where and
> how to display it.

The theme changes are what I was thinking because otherwise it comes up on the
recorded programs display.  This is a simple way to test it.

> > BUG #2: Still there. Soft pads are still dropped when they should be
> > retained.
>
> I believe I alread said that will an extra pass after SchedNewRecords
> to maximize padding.  I'm not planning on writing it so someone else
> is going to have to do it.

No need.

> > BUG #3: Still there. A higher-priority show will conflict other shows
> > around it in order to preserve the soft padding. I checked
> > Utilities/Setup -> Setup -> TV Settings -> Recording Priorities -> Set
> > Recording Priorities -> Reschedule Higher Priorities, as requested, and
> > this was set to off. Also all the numbers were 0.
>
> Perhaps I'm misunderstanding, but if you're saying soft pads never get
> dropped if Reschedule Higher Priorities isn't set, then yes, that is
> expected.  The approach under consideration has to work that way by
> design.  I'll disable soft padding if this option isn't set.

Soft padding will still be dropped for the same or lower priority recordings
without this option.

New, better patch attached,
Paul
--

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.