views:

198

answers:

1

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!

A: 

Error lookup says "-2147024809 = 0x80070057 - The parameter is incorrect." Does PinCategory.Capture work? And try to render to the standard renderer first.

Good luck!

Sergius
yes PinCategory.Capture works