Re: Problems getting custom filter interface to work with application
From: Jeremy Noring (somewhere_at_thenet.com)
Date: 10/26/04
- Next message: Dimitri: "audio cards for lineIn and Mic line recording on 2 diffrents file."
- Previous message: The March Hare [MVP]: "Re: Changing resolution for captured image"
- In reply to: Rylan Hilman: "Problems getting custom filter interface to work with application"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 26 Oct 2004 09:15:12 -0600
> Flag, in here, is a test value that changes the color of the
> displayed video filter output. Basically, if flag is being constantly
> changed, the color displayed smoothly changes, but if it is -1, then
> it's locked into a specified color. I can see that IID_IMIFilter is
> defined in the idl-generated header file, but if I try to do:
>
> pGB->QueryInterface(IID_IMIFilter, (void **)&pMI)
>
> in the modified playwnd project, it returns E_NOINTERFACE, and the
> debugging flag never reaches -1. I know it's getting called, because
> flag is getting incremented all the time, but it goes through the else
> every time.
In the playwnd project, on line 43, is the following:
// DirectShow interfaces
IGraphBuilder *pGB = NULL;
You need to do QI on your output pin--not on the GraphBuilder interface.
You always QI on the object in which your interface is implemented. I would
also suggest you implement your interfaces on the source filter rather than
your output pin, as it generally simplifies the code to implement your
filter and you don't need to worry about releasing pins.
-- Where am I going? And why am I in this handbasket?
- Next message: Dimitri: "audio cards for lineIn and Mic line recording on 2 diffrents file."
- Previous message: The March Hare [MVP]: "Re: Changing resolution for captured image"
- In reply to: Rylan Hilman: "Problems getting custom filter interface to work with application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|