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

Stuart Morgan stuart at tase.co.uk
Tue Aug 7 19:33:27 UTC 2007

On Tuesday 07 August 2007 20:13:20 mythtv at miwers.dk wrote:
>  I found something else during my testing...
>  Please notice that the frontend only issues one LiveTVChain(): SwitchTo()
> event for each switch:
>  If I record with the IVTV tuners, then I get two SwitchTo events for each
> switch. Could this be the cause of the freezing? It seems that the frontend
> is trying to play back the stream twice, and there's a collision. I'm only
> guessing, but it could be worth looking into.

This is a known problem but seems to be more of a symptom that the root cause. 
We reach EOF on one file and then switch to the second file only to EOF again 
because it doesn't exist (or is empty). We then try to switch to the third 
file in the chain but only two programmes exist and at this point we get 
stuck looking for a non-existant "next" file.

>  mythtv-IVTV-double-switchto.txt
>  Also notice, that in the DVB log (continuous) I get the
> FileChangedCallback, but I don't get this in the IVTV logs before it
> freeze. So, maybe somewhere in between those events it all goes fubar for
> the frontend.

Let me just say right now, that it's a red herring looking at differences 
between DVB and IVTV. Plenty of people have trouble with DVB and none at all 
with IVTV or vice-versa. This is a race condition issue caused by differences 
in speed on some systems and seems to have nothing to do with the type of 
capture card.

Stuart Morgan

More information about the mythtv-dev mailing list