MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » Archive » Archive » Bug Reports » 1.0 RC2 and SVN Builds


Reply
 
LinkBack Thread Tools Display Modes
Old 2008-10-04, 16:00   #1 (permalink)
Portal Tester
 
Join Date: Apr 2008
Posts: 224
Thanks: 9
Thanked 15 Times in 15 Posts

Country:


Default RecordingDetail class has a hardcoded value for the recordings extension

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.RecordingFolder);
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 16:02..
johnzered is offline   Reply With Quote
Old 2008-10-04, 20:46   #2 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 32
Posts: 8,604
Thanks: 361
Thanked 657 Times in 426 Posts


Default

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"
tourettes is online now   Reply With Quote
Reply

Bookmarks

Tags
class, extension, hardcoded, recordingdetail

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide Context menu Item (hardcoded?) dpsc2 Installation, configuration support 0 2008-07-23 17:59
COM Class / CLSID kadafi General Support 0 2008-04-08 16:55
Hardcoded LNB Settings! M4TH Television (MyTV frontend and TV-Server) 0 2007-02-20 07:21
Translation problem - english words hardcoded! kamrat General Development (no feature request here!) 20 2006-01-20 11:37


All times are GMT +1. The time now is 22:47.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden