I am using a live input source filter to which i give the (H264)data from buffer and try it to connect tointel h264 decoder.
In graph edit it connects but when i try it to connect through programmatically through my following code:-
IGraphBuilder *pGraph, // Filter Graph Manager.
IPin *pOut, // Output pin on the upstream filter.
IBaseFilter *pDest) // Downstream filter.
if ((pGraph == NULL) || (pOut == NULL) || (pDest == NULL))
// Find an input pin on the downstream filter.
IPin *pIn = NULL;
HRESULT hr = FindUnconnectedPin(pDest, PINDIR_INPUT, &pIn);
// Try to connect them.
hr = pGraph->ConnectDirect(pOut, pIn, NULL);//don't come out of here
It dont come out of here hr = pGraph->ConnectDirect(pOut, pIn, NULL);
The live source filter have been constructed by modifing the filter given on this link http://www.codeproject.com/Articles/158053/DirectShow-Filters-Development-Part-2-Live-Source?fid=1610270&select=4508742&fr=1#xx0xx