[mythtv] Ticket #2335: LiveTV hangs when a recording is finished and a new on starts (no channel change)

mythtv at miwers.dk mythtv at miwers.dk
Wed Jul 25 21:43:32 UTC 2007


Shane wrote:
> On 7/24/07, Hadley Rich <hads at nice.net.nz> wrote:
>> On Wed, 25 Jul 2007 04:06:44 eric.bosch at comcast.net wrote:
>>> I don't believe it is an ivtv issue, as I can have the live-tv hang on show
>>> transition, even though the program is scheduled to record, and once I can
>>> get back to the menu, and then play it back from recordings, it plays fine.
>>>  My suspicion is that there is some sort of race condition or timing issue
>>> in that perhaps there is a short delay where the new file is opened, and
>>> actually catalogged.
> 
> My guess is the problem lies with 'continuous' type of livetv file
> transitions, these continuous transitions are used for livetv ivtv
> files but not V4L or DVB files. The discontinuity (discont=1) type of
> file transitions follow a different path and are ok I think.
> 
> Should be able to test this theory by making a small code change in
> tv_rec.cpp ...
> 
> Around line 1310 in TVRec::RunTV(void)
> ...
> + SwitchLiveTVRingBuffer(true, true);   // Try this for discont transitions
>   - SwitchLiveTVRingBuffer(false, true);
> 
> I also have a vague suspicion that something else might be causing
> more prebuffering pauses than usual.
> 
> Shane

Are you sure about that? My rig uses the same transition type for all 
recorders (IVTV, V4L, DVB all use discont = 0), at least the log says so.

Still, I only get freezes (EVERY time) on my IVTV cards, but not on my 
V4L and DVB card.

But your little hack seems to fix the freezing on playback for me, so 
you're probably right.

/Miwer


More information about the mythtv-dev mailing list