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
MediaPortal 1 Plugins
ViewModeSwitcher plugin (Version 0.3)
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="cpp2005" data-source="post: 342923" data-attributes="member: 26608"><p>Hi Lars,</p><p>sometimes a correct rule is not matched and I found the problem: g_Player.Width and g_Player.Height values are sometimes zero in Worker method of ViewModeSwitcher.cs. To fix it, I changed the line</p><p>ProcessRules(ARCalc, g_Player.Width, g_Player.Height); </p><p>to</p><p>ProcessRules(ARCalc, VMR9Util.g_vmr9.VideoWidth, VMR9Util.g_vmr9.VideoHeight);</p><p></p><p>that's because g_Player.Width and g_Player.Height are initialized sometime after they are available in VMR9Util so there is a possibility that ViewModeSwitcher will see them before that.</p><p></p><p>btw: what about <a href="https://forum.team-mediaportal.com/plugins-47/viewmodeswitcher-plugin-version-0-3-a-21365/index13.html#post233772" target="_blank">this</a> patch? <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p></blockquote><p></p>
[QUOTE="cpp2005, post: 342923, member: 26608"] Hi Lars, sometimes a correct rule is not matched and I found the problem: g_Player.Width and g_Player.Height values are sometimes zero in Worker method of ViewModeSwitcher.cs. To fix it, I changed the line ProcessRules(ARCalc, g_Player.Width, g_Player.Height); to ProcessRules(ARCalc, VMR9Util.g_vmr9.VideoWidth, VMR9Util.g_vmr9.VideoHeight); that's because g_Player.Width and g_Player.Height are initialized sometime after they are available in VMR9Util so there is a possibility that ViewModeSwitcher will see them before that. btw: what about [URL="https://forum.team-mediaportal.com/plugins-47/viewmodeswitcher-plugin-version-0-3-a-21365/index13.html#post233772"]this[/URL] patch? ;) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
ViewModeSwitcher plugin (Version 0.3)
Contact us
RSS
Top
Bottom