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!