IKsPropertySet interface is not supported in IMFMediSource

♀尐吖头ヾ 提交于 2019-12-05 06:12:39

问题


I am porting my Direct Show camera based SDK to MFT. In my old code I have KSProxy interface like IksTopolgy,IKsControl and IKsProperty .

IksTopolgy,IKsControl is used to enumerate the property set and IKsProperty to get/set the property value. Now I was trying to same in new code.I am able to enumerate the property i.e following code is supported in MFT.

CComPtr<IKsTopologyInfo> ksTopology = NULL;
hRet = m_pMediaSource->QueryInterface(&ksTopology);    

But IKsProperty interface which is used to get/set the property value is not working returning E_NOINTERFACE.

 hRet = m_pMediaSource->QueryInterface(&pKsPropertySet); 

is failing.I dont understand why this is not supported in m_pMediaSource Please suggest how to get/set the properties value.

来源:https://stackoverflow.com/questions/14880434/ikspropertyset-interface-is-not-supported-in-imfmedisource

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!