[mythtv-commits] Ticket #5744: Initial tuning to an analogue station fault

MythTV mythtv at cvs.mythtv.org
Fri Sep 26 00:02:47 UTC 2008

#5744: Initial tuning to an analogue station fault
 Reporter:  anonymous  |       Owner:  ijr       
     Type:  patch      |      Status:  new       
 Priority:  major      |   Milestone:  0.21.1    
Component:  mythtv     |     Version:  0.21-fixes
 Severity:  medium     |     Mlocked:  0         
 When initiating a tv session, initial tuning to an analogue
 channel fails. All that is produced is noise rather than
 a picture.

 The fault has been located in:
 void TVRec::TuningNewRecorder(MPEGStreamData *streamData)
 Line 4002 CloseChannel()

 CloseChannel here is called with with the only file descriptor
 open on the video device. On certain tv cards at least, closing
 that single connection will initiate and a sleep state of
 the analogue frontend with loss of all previous tuning detail.
 In order to fix this, the CloseChannel call is moved to a later
 point where it is known that the video device has been opened
 for reading elsewhere.

 Testing results in success and inspection of file descriptors
 in use by the backend before and after shows no leakage.

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

More information about the mythtv-commits mailing list