[mythtv] [PATCH] live TV audio underrun/stutter bug workaround

Isaac Richards ijr at case.edu
Tue Feb 15 00:02:33 UTC 2005


On Monday 14 February 2005 03:46 am, Klaus Weidner wrote:
> On Mon, Feb 14, 2005 at 01:57:44AM -0500, Isaac Richards wrote:
> > On Sunday 13 February 2005 07:59 pm, Klaus Weidner wrote:
> > > I've upgraded to 0.17 and now have the problem that some others have
> > > also reported - switching channels when watching live TV almost always
> > > causes the video to run at half speed, with the audio stuttering badly.
> > > The same effect happens occasionally during recording playback as well.
> >
> > Could you put a couple debug statements in the GetAudiotime() function to
> > see what's making it negative?  That'd help me figure out what's causing
> > the problem.
>
> I think I got it, the variable "delay" in the ALSA getBufferedOnSoundcard
> method didn't get initialized and the function occasionally returned
> garbage data when the sound card was in an unexpected state. Shouldn't
> there be a compiler warning for something like that?

Heh.  Should, yes.  I'll just initialize delay to 0.

> mythfrontend still crashes on me very frequently, but I'll let someone
> else take a shot at that, I need sleep ;-)

Send backtraces. =)

Isaac


More information about the mythtv-dev mailing list