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

Nick Morrott knowledgejunkie at gmail.com
Thu Jul 26 09:53:25 UTC 2007


On 26/07/07, Shane <gnome42 at gmail.com> wrote:
> On 7/25/07, Hadley Rich <hads at nice.net.nz> wrote:
> > I've just been doing some basic testing with this change and it appears to
> > have fixed my issue so far. I've crossed about 8 program boundaries with no
> > issues. I'll continue running with it and see what happens. Thanks!
>
> Ok, good. That narrows down one problem. :)

During some further testing this morning I noticed a few things after
making the tv_rec.cpp change. Some entries got orphaned in the
inuseprograms table making Myth believe the recordings were still in
progress when they were not (these were from DVB-T recordings). They
were not removed when I exited from LiveTV.

Another issue I have noticed is that when a completely recorded
program transitions without freezing (the key problem), a new
ringbuffer is not (always?) created and Myth does not start or even
update the recording with details of the new program but carries on
using the old recording file.

When I entered LiveTV when a program was already underway, the next
program transition was successful. In my testing I entered LiveTV at
0926, and LiveTV successfully transitioned to the next program at
0930, using a new ringbuffer and updating program details accordingly.
However, when this show (0930-1000) finished, at 1000 the recording
again continued without freezing, but continued to use the same
ringbuffer file from the 0930-1000 show. When I backed out of this
show at 1007 and looked at the recordings list, instead of showing one
entry for 0930-1000 and another for 1000-1007 (the next program),
there was only a single entry with duration 0930-1007 with the details
relating to the 0930-1000 program.

I'm sure this will probably cause some issues if a user decides to try
and record the 'new' program when it is still using the old
ringbuffer.

-- 
Nick

MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin


More information about the mythtv-dev mailing list