Menu

Renderstream returns -2147024809.

2010-01-05
2012-10-29
  • Rahul Uttekar

    Rahul Uttekar - 2010-01-05

    I'm building .NET application that uses DirectX API for web camera device
    rendering.
    I'm using DirectShowNet Library .
    When I create instance of for ICaptureGraphBuilder2 interface and call
    RenderStream like bellow

    Guid cat = PinCategory.Still;
    Guid med = MediaType.Video;

    hr =capGraph.RenderStream(ref cat, ref med, capFilter, null,target);

    ,where
    target is my target filter,.
    when I call the method RenderStream it
    failes with return code -2147024809.When I change the category to
    PinCategory.Preview I'm also getting
    the same result.

    Do you know how to fix it?
    Thank you very much!

     
  • snarfle

    snarfle - 2010-01-05

    If you were using our library, you wouldn't be using "ref" in your
    RenderStream call.

    Aside from that, have you checked to see if your device actually has a Still
    pin? And are you actually adding your device to the graph?

     
  • Rahul Uttekar

    Rahul Uttekar - 2010-01-05

    i am using DShowNET lib.it uses "ref" in RenderStream call.
    how to solve the issue.
    Pls help me

     
  • snarfle

    snarfle - 2010-01-05

    If you want to use the library from CodeProject, you should ask for support
    there.

    If you want to use the SF library, you can download it, along with a
    collection of samples from the "Files" option above.

    I notice that you didn't answer the 2 questions I asked you before:

    "have you checked to see if your device actually has a Still pin? And are you actually adding your device to the graph?"

     

Log in to post a comment.