directshow加载ax有关问题
directshow加载ax问题
使用ac3file,
GUID CLSID_Ac3 = {0xF7380D4C, 0xDE45, 0x4F03, 0x92, 0x09, 0x15, 0xEB, 0xA8, 0x55, 0x24, 0x63};
CoCreateInstance(CLSID_Ac3, NULL, CLSCTX_INPROC_SERVER, IID_IBaseFilter, (void**)&g_pAc3File);创建完成之后
hr = g_pGraphBuilder->AddFilter(g_pAc3File, NULL);//ok
hr = g_pAc3File->EnumPins(&EnumPins);// ok
hr = EnumPins->Next(0, &OutPin, NULL);// hr返回值为ok,但是outpin值为0,求解
------解决方案--------------------
Next(0, &OutPin, NULL);
传了0当然就没了。
cPins [in] Number of pins to retrieve.
传1试试。
------解决方案--------------------
不知道,帮顶下。
------解决方案--------------------
pcFetched [out]
Pointer to a variable that receives the number of pins retrieved. Can be NULL if cPins is 1.
ac3 filter应该有两个pin吧。
使用ac3file,
GUID CLSID_Ac3 = {0xF7380D4C, 0xDE45, 0x4F03, 0x92, 0x09, 0x15, 0xEB, 0xA8, 0x55, 0x24, 0x63};
CoCreateInstance(CLSID_Ac3, NULL, CLSCTX_INPROC_SERVER, IID_IBaseFilter, (void**)&g_pAc3File);创建完成之后
hr = g_pGraphBuilder->AddFilter(g_pAc3File, NULL);//ok
hr = g_pAc3File->EnumPins(&EnumPins);// ok
hr = EnumPins->Next(0, &OutPin, NULL);// hr返回值为ok,但是outpin值为0,求解
directshow
ac3
------解决方案--------------------
Next(0, &OutPin, NULL);
传了0当然就没了。
cPins [in] Number of pins to retrieve.
传1试试。
------解决方案--------------------
不知道,帮顶下。
------解决方案--------------------
pcFetched [out]
Pointer to a variable that receives the number of pins retrieved. Can be NULL if cPins is 1.
ac3 filter应该有两个pin吧。