<br><br>On Thursday, 14 June 2012, Brett  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 2012-06-15 at 01:31 +1000, Jean-Yves Avenard wrote:<br>
> On 14 June 2012 20:07, Brett <<a href="javascript:;" onclick="_e(event, 'cvml', 'mythicalbeast@slingshot.co.nz')">mythicalbeast@slingshot.co.nz</a>> wrote:<br>
> > The commit related to refreshrate vs. frame_interval was<br>
> ><br>
><br>
> you're saying that by reverting commit<br>
> 8fd44c8f6b0c7c2053a61c2590c781961023c8bb you get smooth playback?<br>
><br>
By reverting parts of it..yes.<br>
The reverting changes on lines: 1947, 1949, 1950 & 1956 required.<br>
Line 1947 is crucial.<br>
<br>
I'm experimenting to see the effects of the other variable changes.<br>
<br>
The calculation on line 1979 & 1804 has changed w.r.t. mythtv0.24+fixes<br>
// 0.25+fixes<br>
if (avsync_used > refreshrate)<br>
                {<br>
                    avsync_adjustment += refreshrate;<br>
                }<br>
                else if (avsync_used < 0 - refreshrate)<br>
                {<br>
                    avsync_adjustment -= refreshrate;<br>
                }<br>
<br>
//0.24+fixes<br>
if (avsync_avg > frame_interval * 3 / 2)<br>
                {<br>
                    avsync_adjustment += refreshrate;<br>
                    lastsync = true;<br>
                }<br>
                else if (avsync_avg < 0 - frame_interval * 3 / 2)<br>
                {<br>
                    avsync_adjustment -= refreshrate;<br>
                    lastsync = true;<br>
                }<br>
// far as I can tell refreshrate = frame_interval at playback speed x1..<br>
<br>
Brett<br>
<br>
<br></blockquote><div><br></div><div>I have no idea what line you are referring to. What file you are talking about and which branch of mythtv you are referring to.</div><div>I'm guessing libs/libmythtv/mythplayer.cpp.</div>
<div>Line 1947 with no context means nothing to me. Especially as none of the line numbers you've mentioned have anything to do with the code you quoted<span></span></div><div><br></div>If you want me to have a look at your problem, you'll need to be a little bit more clear.<div>
If you have a patch, provide a patch.</div>