On Sat, 2005-10-15 at 19:42 -0700, Jack Perveiler wrote:
> I have a few ATSC channels (on my PCHDTV-3000) that act erratically when I
> change to them in LiveTV in r7413.  Various frames from the feed look just 
> fine

> When then backend changes to these channels on its own for scheduled 
> recordings
> it does just fine (that is, the recordings it makes play back fine). 
> Additionally, if I change to the funky channel (which causes it to do the
> choppiness), then exit LiveTV and return (it starts up at the last channel I
> was tuned to, the choppy one) it also plays back fine.

> Any ideas/suggestions?  Is this ticket-worthy, or am I just doing something
> wrong?

I think this is because RingBuffer::CalcReadAheadThresh(int) is only
called when you start playing a stream, not when the stream changes.

Try the attached patch...
It may fix this problem for you...

Index: libs/libmythtv/avformatdecoder.cpp
===================================================================
--- libs/libmythtv/avformatdecoder.cpp	(revision 7486)
+++ libs/libmythtv/avformatdecoder.cpp	(working copy)
@@ -608,8 +608,6 @@
     autoSelectAudioTrack();
     autoSelectSubtitleTrack();
 
-    ringBuffer->CalcReadAheadThresh(bitrate);
-
     if (!recordingHasPositionMap)
     {
         if ((m_playbackinfo) || livetv || watchingrecording)
@@ -981,6 +979,8 @@
     if (GetNVP()->IsErrored())
         scanerror = -1;
 
+    ringBuffer->CalcReadAheadThresh(bitrate);
+
     return scanerror;
 }
 
_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to