On Jan 31, 2008 10:01 AM, Steven Adeff &lt;<a href="mailto:adeffs.mythtv@gmail.com">adeffs.mythtv@gmail.com</a>&gt; 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&#39;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&#39;t occur when changing channels. Sometimes it will even<br>appear a few seconds after the channel starts &quot;playing&quot;.<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.&nbsp; <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>&nbsp;// If this is Live TV startup, we need a channel...<br>3302&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (channum.isEmpty() &amp;&amp; (request.flags &amp; kFlagLiveTV))<br>
3303&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>3304&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!LiveTVStartChannel.isEmpty())<br>3305&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; channum = LiveTVStartChannel;<br>3306&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>3307&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>3308&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; input&nbsp;&nbsp; = genOpt.defaultinput;<br>
3309&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; channum = GetStartChannel(cardid, input);<br>3310&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>3311&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>3312&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (request.flags &amp; kFlagLiveTV)<br>3313&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; channel-&gt;Init(input, channum, false);<br>3314&nbsp;&nbsp;&nbsp; <br>
3315&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (channel &amp;&amp; !channum.isEmpty() &amp;&amp; (channum.find(&quot;NextChannel&quot;) &gt;= 0))<br>3316&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>3317&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int dir&nbsp;&nbsp;&nbsp;&nbsp; = channum.right(channum.length() - 12).toInt();<br>3318&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uint chanid = channel-&gt;GetNextChannel(0, dir);<br>
3319&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; channum&nbsp;&nbsp;&nbsp;&nbsp; = ChannelUtil::GetChanNum(chanid);<br>3320&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>3321&nbsp;&nbsp;&nbsp; <br>3322&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return channum;<br><br>The change to line 3313 added the extra parameter and set it to false.<br><br>I really don&#39;t understand the impact of these changes.&nbsp; 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&#39;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>