This is how I set Callback.
pGrabber->SetCallback( &CB ,2);
Where are the IUnknown methods? Where is SampleCB()? What is
CB? How does that code even compile? What's your graph's
topology? Is your graph running?
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
If I'm not mistaken, the valid values for the 2nd parameter are 0 and
1.
And what do you think the "2" means there?
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.
I found the problem..In the sample header <qedit.h> included like this .
#define CINTERFACE
#include <qedit.h>
This is forcing to access IsampleGrabber object like this.
pGrabber->vtbl->SetCallback(&CB,2) . Now I commented "#define CINTERFACE".It
is fine.For each frame SampleCB or BufferCB is getting called based on
parameter.
I should have given this code directly. I thought problem is not in vtbl.
Thanks.
"Johnson" <Joh...@gmail.com> wrote in message
news:ORfHxGXf...@TK2MSFTNGP02.phx.gbl...
"mtsay" <silent...@gmail.com> wrote in message
news:b44b6bf6-c455-4a62...@p32g2000vbi.googlegroups.com...