dynamic graph build
-
Friday, June 01, 2012 12:47 PM
i have below graph
--> vfw codec --> gdcl multiplexer --> filewriter
source --> infinite pin tee tee
--> vfw codec --> gdcl multiplexer --> filewriter
i want to switch between each output of infinite pin tee filter, like first above file writer is running, after 5 mins, second file writer starts running and first one stop,
so i want to use dynamic graph, so If i can either use DynamicDisconnect any Pin or Block output, or stop any filter using FilterChain
i have tried with FileWriter, infinite pin tee and gdcl multiplexer
when i use QueryInterface on IPin of filter either i get E_NoInterface or E_Pointer
(e.g.IPin *pOutInfiniteTee2=NULL;
hr = FindUnconnectedPin(infiniteTeeFilter,PINDIR_OUTPUT,&pOutInfiniteTee2);
//ConnectFilter..using..pOutInfiniteTee2
IPinFlowControl *ipinFlow=NULL;
hr=pOutInfiniteTee2->QueryInterface(IID_IPinFlowControl,(void **)&ipinFlow);)
can anybody direct me?
All Replies
-
Wednesday, June 06, 2012 1:36 PMModerator
You cannot do this the way you are trying, because non of the filter is supporting IPinFlowControl.
The easiest solution would be to use the gdcl GMFBridge, which is designed exaclty for this.
Michel Roujansky, http://www.roujansky.com


