sreejith p das
2008-02-01 06:50:42 UTC
hai all,
When I was trying to initialize a decoder DMO , I got an error when
debugging the following code:
IBaseFilter *pFilter;
hr = CoCreateInstance(CLSID_DMOWrapperFilter, NULL,
CLSCTX_INPROC_SERVER, IID_IBaseFilter,
reinterpret_cast<void**>(&pFilter));
if(S_OK == hr)
{
IDMOWrapperFilter *pDmoWrapper;
if(FAILED(hr = pFilter->QueryInterface(IID_IDMOWrapperFilter,(void **)
&pDmoWrapper)))
{
return hr;
}
hr = pDmoWrapper->Init(CLSID_CWMVDecMediaObject2,
DMOCATEGORY_VIDEO_DECODER); //Error in this line
pDmoWrapper->Release();
IMediaObject *pMediaObject;
hr = pDmoWrapper->QueryInterface(IID_IMediaObject,(void **)&pMediaObject)
;
DMO_MEDIA_TYPE* pmt;
hr = pMediaObject->GetInputType(1,1,pmt);
}
the value of hr returned -2147221164 (class not registered).
I didn't understand what is to be done to clear the error. Can any one help
me??
url:http://www.ureader.com/gp/1405-1.aspx
When I was trying to initialize a decoder DMO , I got an error when
debugging the following code:
IBaseFilter *pFilter;
hr = CoCreateInstance(CLSID_DMOWrapperFilter, NULL,
CLSCTX_INPROC_SERVER, IID_IBaseFilter,
reinterpret_cast<void**>(&pFilter));
if(S_OK == hr)
{
IDMOWrapperFilter *pDmoWrapper;
if(FAILED(hr = pFilter->QueryInterface(IID_IDMOWrapperFilter,(void **)
&pDmoWrapper)))
{
return hr;
}
hr = pDmoWrapper->Init(CLSID_CWMVDecMediaObject2,
DMOCATEGORY_VIDEO_DECODER); //Error in this line
pDmoWrapper->Release();
IMediaObject *pMediaObject;
hr = pDmoWrapper->QueryInterface(IID_IMediaObject,(void **)&pMediaObject)
;
DMO_MEDIA_TYPE* pmt;
hr = pMediaObject->GetInputType(1,1,pmt);
}
the value of hr returned -2147221164 (class not registered).
I didn't understand what is to be done to clear the error. Can any one help
me??
url:http://www.ureader.com/gp/1405-1.aspx