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.
<br><br>- Mark.<br><br><div><span class="gmail_quote">On 5/24/06, <b class="gmail_sendername">Mark Buechler</b> <<a href="mailto:mark.buechler@gmail.com">mark.buechler@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Ok, it looks like SetChannelByString is called when we're on the same input (which is correct) but is also called when we switch sources (which I assume is incorrect). So a bit of code is needed to detect an input change and if so call SwitchToInput instead. Do I have this correct?
<br></div><div><span class="sg"><br>- Mark.</span></div><div><span class="e" id="q_10b66b65b26be696_2"><br><br><div><span class="gmail_quote">On 5/24/06, <b class="gmail_sendername">Daniel Kristjansson</b> <<a href="mailto:danielk@cuymedia.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
danielk@cuymedia.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, 2006-05-24 at 08:53 -0400, Mark Buechler wrote:<br>> #1847: DVB - Backend fails to tune to a channel on a different input<br>> Daniel, I'd really like to get this knocked out so I can start testing<br>> the rest of the new stuff. Would you mind giving me some pointers
<br>> where to look to resolve this? To be honest, after looking at the<br>> channel change code a couple hours my head is spinning.<br><br>Yeah, it looks like there are two possible problems:<br> * DVBChannel::SetChannelByString() is being called when SwitchToInput()
<br> should be called. Somehow the input variable in the tuning request<br> is being reset, or just never set.<br> * DVBChannel::SetChannelByString() does not check if a channel not on<br> the current input exists on another input. If you look at other
<br> Channel classes, like the one in channel.cpp, you will see that<br> they switch the to another input when needed.<br><br>I don't know if problem #1 exists. I know problem #2 exists, but I don't<br>know if that is why you are having problems.
<br><br>-- Daniel<br><br>_______________________________________________<br>mythtv-dev mailing list<br><a href="mailto:mythtv-dev@mythtv.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mythtv-dev@mythtv.org
</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev</a><br></blockquote></div><br>
</span></div></blockquote></div><br>