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 Talk
initial support for Hauppuage HD-PVR
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="ajp8164" data-source="post: 593876" data-attributes="member: 64375"><p><strong>Re: AcrSoftVideoDecoder - Attempted to read or write protected memory</strong></p><p></p><p></p><p></p><p>In looking through the code and doing some simple debugging I see that this problem arises from a call to render the graph for the video connection pin (not sure if I am saying that correctly). The exception comes out of the highlighted line below (which calls into Render(ppinOut) inside the ArcSoft Video Decoder AX driver). Not sure what is new in MP that is causing this...</p><p></p><p>[CODE] public static void RenderUnconnectedOutputPins(IGraphBuilder graphBuilder, IBaseFilter baseFilter)</p><p> {</p><p> if (baseFilter == null)</p><p> return;</p><p></p><p> int fetched;</p><p> IEnumPins pinEnum;</p><p> int hr = baseFilter.EnumPins(out pinEnum);</p><p> DsError.ThrowExceptionForHR(hr);</p><p> if (hr == 0 && pinEnum != null)</p><p> {</p><p> pinEnum.Reset();</p><p> IPin[] pins = new IPin[1];</p><p> while (pinEnum.Next(1, pins, out fetched) == 0 && fetched > 0)</p><p> {</p><p> PinDirection pinDir;</p><p> pins[0].QueryDirection(out pinDir);</p><p> if (pinDir == PinDirection.Output && !HasConnection(pins[0]))</p><p> {</p><p> FilterInfo i;</p><p> PinInfo pinInfo;</p><p> string pinName = string.Empty;</p><p> if (baseFilter.QueryFilterInfo(out i) == 0)</p><p> {</p><p> if (pins[0].QueryPinInfo(out pinInfo) == 0)</p><p> {</p><p> Log.Debug("Filter: {0} - try to connect: {1}", i.achName, pinInfo.name);</p><p> pinName = pinInfo.name;</p><p> DsUtils.FreePinInfo(pinInfo);</p><p> }</p><p> }</p><p></p><p> ReleaseComObject(i.pGraph); </p><p> [COLOR="Red"][B]hr = graphBuilder.Render(pins[0]);[/B][/COLOR]</p><p> if (hr != 0)</p><p> Log.Debug(" - failed");</p><p> }</p><p> ReleaseComObject(pins[0]);</p><p> }</p><p> ReleaseComObject(pinEnum);</p><p> }</p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="ajp8164, post: 593876, member: 64375"] [b]Re: AcrSoftVideoDecoder - Attempted to read or write protected memory[/b] In looking through the code and doing some simple debugging I see that this problem arises from a call to render the graph for the video connection pin (not sure if I am saying that correctly). The exception comes out of the highlighted line below (which calls into Render(ppinOut) inside the ArcSoft Video Decoder AX driver). Not sure what is new in MP that is causing this... [CODE] public static void RenderUnconnectedOutputPins(IGraphBuilder graphBuilder, IBaseFilter baseFilter) { if (baseFilter == null) return; int fetched; IEnumPins pinEnum; int hr = baseFilter.EnumPins(out pinEnum); DsError.ThrowExceptionForHR(hr); if (hr == 0 && pinEnum != null) { pinEnum.Reset(); IPin[] pins = new IPin[1]; while (pinEnum.Next(1, pins, out fetched) == 0 && fetched > 0) { PinDirection pinDir; pins[0].QueryDirection(out pinDir); if (pinDir == PinDirection.Output && !HasConnection(pins[0])) { FilterInfo i; PinInfo pinInfo; string pinName = string.Empty; if (baseFilter.QueryFilterInfo(out i) == 0) { if (pins[0].QueryPinInfo(out pinInfo) == 0) { Log.Debug("Filter: {0} - try to connect: {1}", i.achName, pinInfo.name); pinName = pinInfo.name; DsUtils.FreePinInfo(pinInfo); } } ReleaseComObject(i.pGraph); [COLOR="Red"][B]hr = graphBuilder.Render(pins[0]);[/B][/COLOR] if (hr != 0) Log.Debug(" - failed"); } ReleaseComObject(pins[0]); } ReleaseComObject(pinEnum); } }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
initial support for Hauppuage HD-PVR
Contact us
RSS
Top
Bottom