我希望阻止来自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?
答案 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