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 2
Plugin Development
Plugin: RefreshRateChanger
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="morpheus_xx" data-source="post: 1121283" data-attributes="member: 48495"><p>Sorry, I forgot about the question...</p><p></p><p>While it is ok for the VideoPlayer to return a "null" Surface, it shouldn't be the case for the DX device. As the render target is associated with the swap chain, it shouldn't ever be null. Only while recreation of device it could be not initialized... But I'm not sure about this</p><p></p><p>So I'd recommend to use: "Surface surface = player.Surface ?? GraphicsDevice.Backbuffer; if (surface == null) return;"</p><p></p><p>Btw, did you have time to check the new DX11 branch already? There will be changes required, as the known DX9 device will no longer be used and the Surface will change to a Bitmap1 (Direct2D) or an underlying Texture2D (Direct3D11).</p></blockquote><p></p>
[QUOTE="morpheus_xx, post: 1121283, member: 48495"] Sorry, I forgot about the question... While it is ok for the VideoPlayer to return a "null" Surface, it shouldn't be the case for the DX device. As the render target is associated with the swap chain, it shouldn't ever be null. Only while recreation of device it could be not initialized... But I'm not sure about this So I'd recommend to use: "Surface surface = player.Surface ?? GraphicsDevice.Backbuffer; if (surface == null) return;" Btw, did you have time to check the new DX11 branch already? There will be changes required, as the known DX9 device will no longer be used and the Surface will change to a Bitmap1 (Direct2D) or an underlying Texture2D (Direct3D11). [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Plugin: RefreshRateChanger
Contact us
RSS
Top
Bottom