[mythtv-commits] Ticket #2497: Wrong recording file extension can get used on analog/digital cards

MythTV mythtv at cvs.mythtv.org
Fri Sep 29 18:55:29 UTC 2006


#2497: Wrong recording file extension can get used on analog/digital cards
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |       Owner:  ijr    
     Type:  patch      |      Status:  new    
 Priority:  minor      |   Milestone:  unknown
Component:  mythtv     |     Version:  head   
 Severity:  low        |  
-----------------------+----------------------------------------------------
 I have pchdtv5500 (digital/analog card) and I noticed a problem where the
 wrong recording file extension could be used.  So, you might see .nuv
 files for digital channels and .mpeg for analog.

 I traced the problem to tv_rec.cpp.  The problem is that a recording is
 queued (StartedRecording) using the rbFileExt rather than what the current
 channel's file extension should be.  This is an issue for digital/analog
 cards because the actual tuning that sets the correct rbFileExt
 (CreateChannel) is not done until after the recording is queued.  It seems
 like this is too late to change the extension from what I can see.

 I fixed the problem by retrieving a channel's file extension prior to
 queueing a recording.  By default, the file extension is be mpg.  Only if
 a V4l card (using a query that searches for standalone analog or child
 analog cards) is the file extension changed to nuv.
 I also removed the class rbFileExt and any usage since we will looking up
 the extension prior to queuing a recording.

 Any comments?

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/2497>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list