home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Fix for no signal (cable:False)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Mr Hipp" data-source="post: 50127" data-attributes="member: 19440"><p>Hi</p><p></p><p>I have having big problems with my recordings lately (I have analog cable), so I decided to investigate the problem.</p><p></p><p>There is a bug in the TvCardCollection constructor. It reads the serialized definition of a TV card, but it turns out that this definition is not complete. Two members are missing _isAnalogCable, _defaultCountryCode, so when this was read, the two missing memebers was set to false/0. Causing every recording to record static.</p><p></p><p>The fix for this is quite easy:</p><p></p><p>Add the following code to the constructor:</p><p>...</p><p> SoapFormatter c = new SoapFormatter();</p><p> ArrayList cards = (ArrayList)c.Deserialize(r);</p><p> int i = 1;</p><p></p><p> foreach (TVCaptureDevice dev in cards)</p><p> {</p><p> // Must be done since _isAnalogCable, _defaultCountryCode is not made serializable!</p><p> // In future; consider make them serializable and remove this. </p><p> dev.ID = i++;</p><p> dev.LoadDefinitions();</p><p> </p><p> _tvcards.Add(dev);</p><p> }</p><p> r.Close();</p><p>...</p><p></p><p></p><p>Cheers</p><p></p><p>Mr Hipp</p></blockquote><p></p>
[QUOTE="Mr Hipp, post: 50127, member: 19440"] Hi I have having big problems with my recordings lately (I have analog cable), so I decided to investigate the problem. There is a bug in the TvCardCollection constructor. It reads the serialized definition of a TV card, but it turns out that this definition is not complete. Two members are missing _isAnalogCable, _defaultCountryCode, so when this was read, the two missing memebers was set to false/0. Causing every recording to record static. The fix for this is quite easy: Add the following code to the constructor: ... SoapFormatter c = new SoapFormatter(); ArrayList cards = (ArrayList)c.Deserialize(r); int i = 1; foreach (TVCaptureDevice dev in cards) { // Must be done since _isAnalogCable, _defaultCountryCode is not made serializable! // In future; consider make them serializable and remove this. dev.ID = i++; dev.LoadDefinitions(); _tvcards.Add(dev); } r.Close(); ... Cheers Mr Hipp [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Fix for no signal (cable:False)
Contact us
RSS
Top
Bottom