Re: Problems getting custom filter interface to work with application

From: Jeremy Noring (somewhere_at_thenet.com)
Date: 10/26/04


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?


Relevant Pages

  • Re: Highlighting overdue tasks
    ... and insert the Status (or Status Indicator) ... Ahead of schedule tasks show on schedule, ... flag or number field. ... I have a filter that will show me tasks due on a particular ...
    (microsoft.public.project)
  • Re: Mail Rules on Email Header
    ... You cannot filter on a flag. ... > additional header that is supposed to allow you more filtering options. ... message body rules only work with text messages. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Confused about fresh postings appearing that arent marked "recent"
    ... > This might affect the way that the filter conditions 'Message is New ... this means that Pine has no way to record exactly ... show the "N" status flag for any messages in a newsgroup. ... fresh messages are being treated as ...
    (comp.mail.pine)
  • Re: Highlighting overdue tasks
    ... Like I set a view to use a filter I created for Overdue tasks. ... You may also be interested in Highlight filters to answer your point ... Ahead of schedule tasks show on schedule, ... flag or number field. ...
    (microsoft.public.project)
  • RE: *at family of syscalls in FreeBSD
    ... EBADF if the path isn't an absolute path AND the fd is invalid, ... I doubt the interfaces will change, ... that will most likely be incompatible with POSIX. ... and an AT_REMOVEDIRAT flag for directories. ...
    (freebsd-arch)