11-26-2007, 5:15
|
zwen
Joined on 11-20-2007
Posts 7
|
The Frame Rate Control Filter
|
 
 
|
|
|
Hi,
We have been trying to add the frame rate control filter in the directshow graph. The following procedure used to work but not working anymore:
IBaseFilter* pFrameRate;
hr = CoCreateInstance(CLSID_LMVFrameRateCtrl,
NULL,CLSCTX_INPROC,IID_IBaseFilter,
(void**)&pFrameRate);
hr = pGB->AddFilter(pFrameRate, L"My Frame Rate");
ILMVFrameRateCtrl* pRate;
hr = pFrameRate->QueryInterface(IID_ILMVFrameRateCtrl,(void**) &pRate);
the QueryInterface function seems to work, but the system report a system access violation when calling the fuction to change the frame rate:
hr = pRate->put_FrameRate(15.0);
but the function hr = pRate->put_ChangeStreamLength(TRUE) seems to work.
Any idea?
Many thanks for your help
Jeff
Imagination Technologies, UK
|
|
|
|
|
Report
|
|
|
|