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
Submit: code patches (MediaPortal/TV-Server/etc.)
Late dynamic refreshrate changer or fps detection without mediainfo
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="tourettes" data-source="post: 760219" data-attributes="member: 10858"><p>[code]if (Math.Abs(fps - newfps) > 1 && VMR9Util.g_vmr9 != null)[/code]</p><p></p><p>What happens if the 1st detection is 24.000Hz and the 2nd 23.976Hz? Wont we end up in the wrong refresh rate? Also I would prefer that dshowhelper side would be able to provide more exact estimates / guesses about the fps since the code on C# side is really ugly <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Also like gibman states, sleeps should be replaced with events.</p><p></p><p>[code]while (--maxretries > 0);[/code]</p><p></p><p>will only test 99 times, not 100 like intended (althou it wont make any real difference) <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>[code]</p><p> public static void DelayedRefreshrateChanger(string strFile, MediaPortal.Player.g_Player.MediaType type)</p><p>[/code]</p><p></p><p>Exception handling should be added, a thread that doesn't have such will take whole C# application down to desktop if some code that gets run in the thread will throw an exception.</p></blockquote><p></p>
[QUOTE="tourettes, post: 760219, member: 10858"] [code]if (Math.Abs(fps - newfps) > 1 && VMR9Util.g_vmr9 != null)[/code] What happens if the 1st detection is 24.000Hz and the 2nd 23.976Hz? Wont we end up in the wrong refresh rate? Also I would prefer that dshowhelper side would be able to provide more exact estimates / guesses about the fps since the code on C# side is really ugly :) Also like gibman states, sleeps should be replaced with events. [code]while (--maxretries > 0);[/code] will only test 99 times, not 100 like intended (althou it wont make any real difference) :) [code] public static void DelayedRefreshrateChanger(string strFile, MediaPortal.Player.g_Player.MediaType type) [/code] Exception handling should be added, a thread that doesn't have such will take whole C# application down to desktop if some code that gets run in the thread will throw an exception. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Submit: code patches (MediaPortal/TV-Server/etc.)
Late dynamic refreshrate changer or fps detection without mediainfo
Contact us
RSS
Top
Bottom