can't get pin category property
-
I can't get the pin category property in my directshow program, I try all pins in all filters(pSrcFilter, pMux, pMpeg2Splitter, pDecoder, etc), but every pin can't query the IKsPropertySet, it alawys return fail, so i can't know that the pin category is PIN_CATEGORY_CAPTURE or PIN_CATEGORY_PREVIEW, why? please give me some suggestion. IKsPropertySet *pKs; hr = pPin->QueryInterface(IID_IKsPropertySet, (void **)&pKs); if (FAILED(hr)) { return FALSE; }
-
I can't get the pin category property in my directshow program, I try all pins in all filters(pSrcFilter, pMux, pMpeg2Splitter, pDecoder, etc), but every pin can't query the IKsPropertySet, it alawys return fail, so i can't know that the pin category is PIN_CATEGORY_CAPTURE or PIN_CATEGORY_PREVIEW, why? please give me some suggestion. IKsPropertySet *pKs; hr = pPin->QueryInterface(IID_IKsPropertySet, (void **)&pKs); if (FAILED(hr)) { return FALSE; }
For pins, you'll mainly find the IKsPropertySet interface on capture filter pins. Here's some sample code that may help: Working with Pin Categories[^] Mark
Mark Salsbery Microsoft MVP - Visual C++ This episode brought to you by the number 3