On Jan 31, 2008 10:01 AM, Steven Adeff <<a href="mailto:adeffs.mythtv@gmail.com">adeffs.mythtv@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've been getting this problem in SVN for a while now, way before<br>multi-rec was merged. It only happens when initially entering live TV<br>and doesn't occur when changing channels. Sometimes it will even<br>appear a few seconds after the channel starts "playing".<br>
<font color="#888888"><br></font></blockquote></div><br>The last change that I can see that was made that affected the startup of LiveTV was made by danielk as part of r15437. <br><br>The changeset modified the Channel::Init() function in channel.cpp to add an extra parameter called setchan.<br>
<br>I suspect that the changes to program tv_rec.cpp made at line line 3313 might be the culprit.<br><br>Here is the section of the program:<br><br> // If this is Live TV startup, we need a channel...<br>3302 if (channum.isEmpty() && (request.flags & kFlagLiveTV))<br>
3303 {<br>3304 if (!LiveTVStartChannel.isEmpty())<br>3305 channum = LiveTVStartChannel;<br>3306 else<br>3307 {<br>3308 input = genOpt.defaultinput;<br>
3309 channum = GetStartChannel(cardid, input);<br>3310 }<br>3311 }<br>3312 if (request.flags & kFlagLiveTV)<br>3313 channel->Init(input, channum, false);<br>3314 <br>
3315 if (channel && !channum.isEmpty() && (channum.find("NextChannel") >= 0))<br>3316 {<br>3317 int dir = channum.right(channum.length() - 12).toInt();<br>3318 uint chanid = channel->GetNextChannel(0, dir);<br>
3319 channum = ChannelUtil::GetChanNum(chanid);<br>3320 }<br>3321 <br>3322 return channum;<br><br>The change to line 3313 added the extra parameter and set it to false.<br><br>I really don't understand the impact of these changes. But I am suspicious that this change to tv_rec.cpp might be the root cause since this line is invoked only when starting LiveTV.<br>
<br>Can we have danielk take a look?<br><br>BTW, I'm a newbie on the dev mailing list, so if my etiquette is not proper in any way, please educate me (kindly).<br><br>Thanks.<br><br>Tom<br>