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

Isaac Richards ijr at case.edu
Mon Feb 14 06:57:44 UTC 2005


On Sunday 13 February 2005 07:59 pm, Klaus Weidner wrote:
> Hello,
>
> 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.
>
> After a bit of digging around, I've noticed a very weird effect in that
> the "lastaudiotime" value returned by audioOutput->GetAudiotime() is
> occasionally a large negative number, which completely screws up the
> avsync calculations. The patch below is a band aid that works around the
> problem, but maybe someone with a better understanding of the code can
> fix the real underlying problem.

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.

Isaac


More information about the mythtv-dev mailing list