[mythtv] Ticket #1847: DVB - Backend fails to tune to a channel on a different input

Daniel Kristjansson danielk at cuymedia.net
Wed May 24 15:04:45 UTC 2006

On Wed, 2006-05-24 at 10:32 -0400, Mark Buechler wrote:
> After looking at this a bit longer I'm coming around to my previous
> conclusions. If the input information were in the tuning request,
> SwitchToInput would be called. ANd from what I can tell, the only
> place where the input information get set is within
> TVRec::TuningGetChanNum which calls ProgramInfo::GetChannel().
> However, GetChannel() is never called because the pointer to
> ProgramInfo within the tuning request is never defined. I can't figure
> out where that's supposed to be defined. 

ProgramInfo is only populated for scheduled recordings, the channum
and/or inputname is filled in on channel change and input change events.

Try fixing DVBChannel::SetChannelByString() so that it works
like Channel::SetChannelByString(). i.e. it checks if the channel
is on a different input, and calls SwitchToInput() if it is. The
DVBChannel class didn't support really support multiple inputs
until a few months ago, and I believe we forgot to add this

-- Daniel

More information about the mythtv-dev mailing list