无限针三通滤波器的IPinFlowControl

时间:2012-06-01 11:29:36

标签: visual-c++ directshow

我希望阻止来自Infinite Pin Tee filter

的其中一个引脚的输出

所以我试图得到IPinFlowControl输出引脚之一,但我在HResult中得到E_Pointer

以下是我的代码

IPin *pOutInfiniteTee2=NULL;

hr = FindUnconnectedPin(infiniteTeeFilter,PINDIR_OUTPUT,&pOutInfiniteTee2);

//ConnectFilter..using..pOutInfiniteTee2

IPinFlowControl *ipinFlow=NULL;
    hr=pOutInfiniteTee2->QueryInterface(IID_IPinFlowControl,(void **)&ipinFlow);

如何在InfineTeePin fitler中使用IPinFlowControl?

1 个答案:

答案 0 :(得分:2)

正如MSDN所述,Infinite Pin Tee Filter上无法使用IPinFlowControl

Filter Interfaces   IBaseFilter
Input Pin Media Types   Any media type
Input Pin Interfaces    IMemInputPin, IPin, IQualityControl
Output Pin Media Types  Any media type. The output type always matches the input type, for all output pins
Output Pin Interfaces   IMediaPosition, IMediaSeeking, IPin, IQualityControl
Filter CLSID    CLSID_InfTee