Re: Source Filter Problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



I was able to get past the problem finally... Originally, I was overriding
the Stop method and calling the base class Stop in the filter. This was
causing the problem. I removed the overridden Stop method from my source
filter and implemented OnThreadDestroy so I could stop my data source.




<sirhaden@xxxxxxxxxxx> wrote in message
news:%23JnGd7gnHHA.1240@xxxxxxxxxxxxxxxxxxxxxxx
I have developed a source filter using the CSource and CSourceStream
classes. When I attempt to stop the filter it will only stop if there is
no output pin at the end of the chain of filters. If there is an output
pin on the filter at the end of the chain, then the call to Stop never
returns.

It appears that the problem is in the CAMThread::CallWorker method where
the stop command is processed. The call to m_EventComplete.Wait(); simply
hangs.

Is there something I can do to get past this?

Thanks Greatly...

Michael



.



Relevant Pages

  • Re: Custom filter gets "These filters cannot agree on a connection error" (Return code: 0x
    ... > If the connection attempt starts out with the output pin of a Microsoft ... > provided filter calling GetMediaType() on my input pin, ... I would expect a filter which called first with a CheckMediaType of NULL ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Custom filter gets "These filters cannot agree on a connection error" (Return code: 0x
    ... I suggest you use a good filter wizard to generate the framework. ... > If the connection attempt starts out with the output pin of a Microsoft ... > provided filter calling GetMediaType() on my input pin, ...
    (microsoft.public.win32.programmer.directx.video)
  • My Filter never Stoppeth
    ... The deadlock occurs inside the output pin Deliverroutine, ... It may or may not be useful for me to state that the filter successfully ... graph transitions state from Pause to Stop? ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: encoding multichannel audio using the ASFWriter
    ... Do I have to configure the filter via its interface to get it to work? ... I had a look through the source code and got the feeling that was just ... On the output pin the advertised wave format should look like ... debug the format negotiation a little bit and see what is going on. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Selecting video region from allocator presenter
    ... I can use to implement a rendering filter from some base rendering ... If you only want one output pin then CTransformFilter ... here's some good news and some bad news. ...
    (microsoft.public.win32.programmer.directx.video)