| |||||||
| Forum Categories |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Tester Join Date: Apr 2008
Posts: 149
Thanks: 3
Thanked 8 Times in 8 Posts
Country: | As the title says, hardcoded extension for recordings... From what I can see the hardcoded extension variable (recEngineExt) in MakeFileName is only used from scheduler class line 625 when a recordingspath is made: recording.MakeFileName(cardInfo.Card.RecordingFold er); recording.CardInfo = cardInfo; Log.Write("Scheduler : record to {0}", recording.FileName); To produce a logentry, going further in the code in scheduler.cs when the recording starts it sends filename as a parameter to StartRecording when it returns fileName has the correct extension so for the moment it looks like it is only the log line that becomes wrong. But i suppose this could be missused if only RecordingDetail.MakeFileName is used somewhere. string fileName = recording.FileName; if (false == _controller.StartRecording(ref _user, ref fileName, false, 0)) { return false; } log output (notice first line has an mpg extension=wrong the rest have .ts): ... 2008-08-01 16:39:16.465000 [10]: Scheduler : record to C:\ProgramData\Team MediaPortal\MediaPortal TV Server\recordings\world trade center - CANAL+ HITS - 2008-08-01.mpg 2008-08-01 16:39:16.470000 [13]: card: StartRecording 1 C:\ProgramData\Team MediaPortal\MediaPortal TV Server\recordings\world trade center - CANAL+ HITS - 2008-08-01.ts 2008-08-01 16:39:16.471000 [13]: StartRecording to C:\ProgramData\Team MediaPortal\MediaPortal TV Server\recordings\world trade center - CANAL+ HITS - 2008-08-01.ts 2008-08-01 16:39:16.472000 [13]: subch:0 StartRecord(C:\ProgramData\Team MediaPortal\MediaPortal TV Server\recordings\world trade center - CANAL+ HITS - 2008-08-01.ts) 2008-08-01 16:39:16.473000 [13]: subch:0 record transport stream mode 2008-08-01 16:39:16.474000 [13]: subch:0 StartRecording... ... One possible solution as I see it would be that instead of passing just a recordingpath string, pass the cardinfo to the MakeFileName method and that way it would be possible to determine what recordingformat that card is using... EDIT: Sorry for posting in wrong forum, can someone move it to the tv-section? //johnzered Last edited by johnzered; 2008-10-04 at 15:02.. |
| | |
| | #2 (permalink) |
| Portal Developer Join Date: Jan 2005 Age: 31
Posts: 5,477
Thanks: 162
Thanked 265 Times in 199 Posts
| Its a bug indeed, but so small that I havent ever even thought about fixing it Maybe in the future when there arent anything else left to be fixed ![]()
__________________ http://day2.no-ip.org/ "Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen" SourceForge Community Choice Awards: :: Vote for MediaPortal as best Multimedia application! :: |
| | |
![]() |
| Bookmarks |
| Tags |
| class, extension, hardcoded, recordingdetail |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hide Context menu Item (hardcoded?) | dpsc2 | Installation, configuration support | 0 | 2008-07-23 16:59 |
| COM Class / CLSID | kadafi | General Support | 0 | 2008-04-08 15:55 |
| Hardcoded LNB Settings! | M4TH | Television (MyTV frontend and TV-Server) | 0 | 2007-02-20 06:21 |
| Translation problem - english words hardcoded! | kamrat | General Development (no feature request here!) | 20 | 2006-01-20 10:37 |