2010-01-06 2 views
1

Je crée l'application .NET qui utilise l'API DirectX pour le rendu de la caméra Web. J'utilise DirectShowNet Library.direcrtshow: calll à la méthode Renderstream renvoie -2147024809

je crée une instance de ICaptureGraphBuilder2 et appellent RenderStream:

IBaseFilter target; 
... 

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

hr = capGraph.RenderStream(ref PinCategory.Still, ref med, capFilter, null, target); 
hr = capGraph.RenderStream(ref PinCategory.Preview, ref med, capFilter, null, target); 
hr = capGraph.RenderStream(ref PinCategory.Capture, ref med, capFilter, null, target); 

Quand j'appelle la méthode RenderStream il échoue avec le code de retour -2147024809:

0x80075507 Le paramètre est incorrect

Qu'en est-il des paramètres incorrects?

Répondre

0

La recherche d'erreur indique "-2147024809 = 0x80070057 - Le paramètre est incorrect." PinCategory.Capture fonctionne-t-il? Et essayez de rendre au rendu standard en premier.

Bonne chance!

+0

oui PinCatégorie.Capture travaux – user244505

Questions connexes