Windows Media Foundation - IMFActivate :: ActivateObject - RPC错误?

时间:2018-02-28 18:30:55

标签: c++ windows winapi ms-media-foundation uvc

我在使用Windows Media Foundation API(使用Windows 8.1工具包)创建UVC扩展单元界面时遇到问题。

我尝试在使用Ks.h提供的功能与视频源的相应UVC扩展单元接口之前打开视频源。

我使用

枚举可用的视频源
MFEnumDeviceSources()

并通过枚举设备的友好名称选择正确的设备,这些都可以正常工作。

当我尝试在所选视频源上调用IMFActivate :: ActivateObject()时出现问题:

HRESULT hr = ppVideoDevices[deviceIndex]->ActivateObject(IID_PPV_ARGS(&pVideoSource));

会导致以下错误:

hr = 0x800706d9 : There are no more endpoints available from the endpoint mapper.

我已确保所有RPC服务都正常运行,但我无法弄清楚可能导致此错误的原因。我试图在线找到现有的解决方案,但什么都找不到。

还有其他人遇到过类似的东西吗?

0 个答案:

没有答案