thedeemon.com forum
November 21, 2009, 03:00:53 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Last
GraphEditPlus
version: 1.3.4 Last
Video Enhancer
version: 1.9.3
Home
Help
Search
Login
Register
thedeemon.com forum
>
DirectShow programming
>
GraphEditPlus
>
Problem with GetPin "epins.Next(1, pins, fetched)"
Pages: [
1
]
« previous
next »
Print
Author
Topic: Problem with GetPin "epins.Next(1, pins, fetched)" (Read 514 times)
09uz
Newbie
Karma: +0/-0
Posts: 2
Problem with GetPin "epins.Next(1, pins, fetched)"
«
on:
April 29, 2009, 03:58:48 AM »
private IPin GetPin(IBaseFilter filter, string pinname)
{
IEnumPins epins;
int hr = filter.EnumPins(out epins);
DsError.ThrowExceptionForHR(hr);
IntPtr fetched = Marshal.AllocCoTaskMem(4);
IPin[] pins = new IPin[1];
while (
epins.Next(1, pins, fetched)
== 0)
{
PinInfo pinfo;
pins[0].QueryPinInfo(out pinfo);
bool found = (pinfo.name == pinname);
DsUtils.FreePinInfo(pinfo);
if (found)
return pins[0];
}
DsError.ThrowExceptionForHR(-1);
return null;
}
Error 1 The best overloaded method match for 'DirectShowLib.IEnumPins.Next(int, DirectShowLib.IPin[], out int)' has some invalid arguments
Error 2 Argument '3': cannot convert from 'System.IntPtr' to 'out int'
I have no idea what's going on...
Logged
Dee Mon
Administrator
Full Member
Karma: +5/-0
Posts: 207
Re: Problem with GetPin "epins.Next(1, pins, fetched)"
«
Reply #1 on:
April 29, 2009, 06:02:04 PM »
You have a different version of DirectShowLib obviously. GEP uses version 2.0.0.0 and generates code for it.
Logged
09uz
Newbie
Karma: +0/-0
Posts: 2
Re: Problem with GetPin "epins.Next(1, pins, fetched)"
«
Reply #2 on:
April 29, 2009, 06:10:21 PM »
You are right thank you...
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Video Processing
-----------------------------
=> Video Enhancer
=> Filters and codecs
=> Screen Capture
=> General Discussion
-----------------------------
DirectShow programming
-----------------------------
=> GraphEditPlus
=> General Discussion
Loading...