[mythtv-commits] Ticket #2006: Mythbackend stops recording 02:21 after programme start (DVB)

MythTV mythtv at cvs.mythtv.org
Mon Jul 10 16:20:34 UTC 2006


#2006: Mythbackend stops recording 02:21 after programme start (DVB)
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |        Owner:  danielk  
     Type:  defect     |       Status:  closed   
 Priority:  minor      |    Milestone:  0.20     
Component:  dvb        |      Version:  head     
 Severity:  medium     |   Resolution:  duplicate
-----------------------+----------------------------------------------------
Comment (by dm at prolingua.co.uk):

 I've looked at this and the attached patch seems to work for me.  I've
 made several recordings now off BBC7.

 It seems that this problem only occurs with BBC7 and is something to do
 with them sending a new PMT at the beginning of each programme.  The major
 bug was a deadlock that can occur if the dummy video thread is in the
 process of writing when AdjustFilters is called.  The thread acquires
 _pid_lock whenever it writes a packet but AdjustFilters holds this lock.
 That means that StopDummyVideo may not complete.  Moving the call to
 before AdjustFilters takes the lock fixes this.

 There were two other things that I've included in this patch: both very
 minor.  It seems that sometimes the frontend stops at the beginning of a
 programme when listening to live radio and I suspect that this is related
 to the new PMT and restarting the dummy video thread.  The two changes
 I've made seem to improve this.  Also I noticed when I played the test
 recordings of BBC7 that the logo and programme information weren't being
 displayed.  My previous patch to fix a bug in the interactive TV had
 inadvertently turned off MHEG in recordings.  This fixes that.

 David.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/2006>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list