Programming/MFC-C++

[DirectShow] Filter Enumeration

빠릿베짱이 2014. 10. 14. 10:17
반응형

CComPtr<IEnumFilters> pEnumFilters;

CComPtr<IBaseFilter>  pBaseFilter;

pGraph->EnumFilters(&pEnumFilters);

while (pEnumFilters->Next(1, &pBaseFilter, 0) == S_OK) 

{

        FILTER_INFO finfo;

        pBaseFilter->QueryFilterInfo(&finfo);

        printf("%s\n", finfo.achName);

        pBaseFilter.Release();

}

반응형