Ask a questionAsk a question
 

Answerhow do you connect filter pins

  • Wednesday, November 04, 2009 2:51 PMWill Hendrie Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I am somewhat new to DirectShow programming.

    I can not connect two filter pins with this code:

    hr = pGraph->Connect(pMuxOut,pDecoderForDellIn)

    The error returned is hr = -2147220969. This translates to error code 535 and facility code 4 in winerror.h ..
    winerror.h documentation shows this error as :

    // MessageId: ERROR_PIPE_LISTENING
    //
    // MessageText:
    //
    // Waiting for a process to open the other end of the pipe.


     What does it mean? How does it apply to my program? Am I misreading the error code?

    The strange thing is that the filter pins will connect properly when I manually connect them in graphedit.
    Why wont they connect in my visual studio program?
    Any help will be appreciated.
    Thanks.
    Will

Answers

  • Wednesday, November 04, 2009 2:52 PMRoman RyltsovMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    The error returned is hr = -2147220969. This translates to...
    Search results for HRESULT = 0x80040217 :
    =========================
    Module File Name:
    C:\Windows\SysWOW64\quartz.dll
    Error Message:
    No combination of intermediate filters could be found to make the connection.
    -------------------------



    http://alax.info/blog/tag/directshow
    • Marked As Answer byWill Hendrie Wednesday, November 04, 2009 3:57 PM
    •  

All Replies

  • Wednesday, November 04, 2009 2:52 PMRoman RyltsovMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    The error returned is hr = -2147220969. This translates to...
    Search results for HRESULT = 0x80040217 :
    =========================
    Module File Name:
    C:\Windows\SysWOW64\quartz.dll
    Error Message:
    No combination of intermediate filters could be found to make the connection.
    -------------------------



    http://alax.info/blog/tag/directshow
    • Marked As Answer byWill Hendrie Wednesday, November 04, 2009 3:57 PM
    •  
  • Wednesday, November 04, 2009 4:01 PMWill Hendrie Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Roman: Thanks for the quick reply.

    Why can GRAPHEDT connect the same two filters without any intermediate filters but I can't?
  • Wednesday, November 04, 2009 4:30 PMRoman RyltsovMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    There is no easy answer. Typically you can do the same things in code and with GraphEdit, but there are exception and scenarios specific to certain filters. For example, a commercial filter might be letting connections in GraphEdit as a "demo mode". But inmost cases it's something with your code if you have problems repeating GraphEdit behavior.
    http://alax.info/blog/tag/directshow
  • Wednesday, November 04, 2009 4:40 PMWill Hendrie Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks for the help.
    Will