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
Language specific support
Deutsches MediaPortal Forum
Plugins & Skins für das MediaPortal
Plugins & Erweiterungen
[Neues Plugin] Atmolight plugin
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="sukceso" data-source="post: 963746" data-attributes="member: 84278"><p>Hier ist die geänderte Core.dll für Mediaportal 1.3 RC (gebaut aus dem aktuellen Git "master" Stream, das sollte dem RC entsprechen).</p><p>Bitte die aktuelle Core.dll kopieren bevor ihr sie mit deraus der angehängten ZIP file ersetzt.[DOUBLEPOST=1360131393][/DOUBLEPOST]Der Patch verändert nur eine Datei: mediaportal/Core/Player/FrameGrabber.cs</p><p> </p><p>Änderungen: die mit "+" gekennzeichneten Stellen hinzufügen (die Zeilen vorher und nachher dienen zum Finden der Stellen).</p><p> </p><p>1. Stelle:</p><p>[code] private FrameGrabber() {}</p><p> </p><p>+ public delegate void NewFrameHandler(Int16 width, Int16 height, Int16 arWidth, Int16 arHeight, uint pSurface);</p><p>+ public event NewFrameHandler OnNewFrame;</p><p>+</p><p> public static FrameGrabber GetInstance()</p><p> {</p><p> if (instance == null)[/code]</p><p> </p><p>2. Stelle:</p><p>[code] /// <param name="pSurface"></param></p><p> public void OnFrame(Int16 width, Int16 height, Int16 arWidth, Int16 arHeight, uint pSurface)</p><p> {</p><p>+ if (OnNewFrame != null)</p><p>+ {</p><p>+ try</p><p>+ {</p><p>+ OnNewFrame(width, height, arWidth, arHeight, pSurface);</p><p>+ }</p><p>+ catch(Exception)</p><p>+ {</p><p>+ }</p><p>+ }</p><p> // Is GetCurrentImage() requesting a frame grab?</p><p> if (!grabSample)</p><p> {[/code]</p></blockquote><p></p>
[QUOTE="sukceso, post: 963746, member: 84278"] Hier ist die geänderte Core.dll für Mediaportal 1.3 RC (gebaut aus dem aktuellen Git "master" Stream, das sollte dem RC entsprechen). Bitte die aktuelle Core.dll kopieren bevor ihr sie mit deraus der angehängten ZIP file ersetzt.[DOUBLEPOST=1360131393][/DOUBLEPOST]Der Patch verändert nur eine Datei: mediaportal/Core/Player/FrameGrabber.cs Änderungen: die mit "+" gekennzeichneten Stellen hinzufügen (die Zeilen vorher und nachher dienen zum Finden der Stellen). 1. Stelle: [code] private FrameGrabber() {} + public delegate void NewFrameHandler(Int16 width, Int16 height, Int16 arWidth, Int16 arHeight, uint pSurface); + public event NewFrameHandler OnNewFrame; + public static FrameGrabber GetInstance() { if (instance == null)[/code] 2. Stelle: [code] /// <param name="pSurface"></param> public void OnFrame(Int16 width, Int16 height, Int16 arWidth, Int16 arHeight, uint pSurface) { + if (OnNewFrame != null) + { + try + { + OnNewFrame(width, height, arWidth, arHeight, pSurface); + } + catch(Exception) + { + } + } // Is GetCurrentImage() requesting a frame grab? if (!grabSample) {[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Language specific support
Deutsches MediaPortal Forum
Plugins & Skins für das MediaPortal
Plugins & Erweiterungen
[Neues Plugin] Atmolight plugin
Contact us
RSS
Top
Bottom