[mythtv] [PATCH] Updated version of presetpatch

Chris Pinkham cpinkham at bc2va.org
Sun Apr 27 12:23:47 EDT 2003


This is just what I was thinking.  Since this isn't an option in the
setup screen, it needs to be determined everytime the TV object starts
and everytime the input changes.  With the current method, if I add a channel
below the lowest or I remove the lowest, it could cause problems right?

I haven't looked over the code too closely, but wanted to too put out another
idea as well.  Why don't you just make it key off the lowest _possible_
value for the current input.  If you did this, you could add or remove
channels and it wouldn't change anything.  So, chanid 1001 would be preset #1
always, chanid 1002 preset #2, etc..  Same for chanid 2001 (preset 1), and
chanid 2002 (preset 2) when you were using that input.

> On Sunday 27 April 2003 07:11 am, Bjorn Hijmans wrote:
> > On Sun, 27 Apr 2003, Isaac Richards wrote:
> > > Probably should be basing it off the lowest chanid that's valid for the
> > > current input, not globally.
> >
> > You are right. New patch is attached.
> 
> Still not quite correct =) Tuner cards can have multiple inputs attached to 
> different sources, and this would only catch one of them.  Might make more 
> sense to just get the lowest chanid whenever the TV object starts up or the 
> user changes the input of the card.
> 
> Isaac

Chris



More information about the mythtv-dev mailing list