[mythtv-commits] Ticket #12269: Channel change on watching live tv starts playing old recording

MythTV noreply at mythtv.org
Sat Apr 11 15:58:31 UTC 2015


#12269: Channel change on watching live tv starts playing old recording
----------------------------------+-----------------------------
 Reporter:  mythtv@…              |          Owner:
     Type:  Bug Report - General  |         Status:  new
 Priority:  minor                 |      Milestone:  unknown
Component:  MythTV - General      |        Version:  Master Head
 Severity:  medium                |     Resolution:
 Keywords:                        |  Ticket locked:  0
----------------------------------+-----------------------------

Comment (by natanojl):

 After a few hours of looking at the logs and the code I think it looks
 like a race between the LIVETV_CHAIN UPDATE event sent from the backend
 when a recording is finished and the frontend reading directly from the
 database.

 Looking at the frontend log there are two LIVETV_CHAIN UPDATE events
 received at 13:45:32.402590 and 13:45:32.543229 with 3 and 4 entries in
 the chain respectively.

 Shortly after at 13:45:32.640686 the live TV chain is read from the
 database where 4 entries are found.

 At 13:45:33.962783 the LIVETV_CHAIN UPDATE event with 3 entries is now
 processed and the fourth entry is removed.  In LiveTVChain::ReloadAll()
 m_curpos has now been reset to 0, probably because the entry matching
 m_cur_chanid/m_cur_startts can no longer be found in m_chain.

 At 13:45:33.976393 RingBuffer calls LiveTVChain::SwitchToNext which
 switches back to the second entry in the chain, i.e. m_curpos = 1.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12269#comment:5>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list