Re: unknown software exception with SampleGrabber
- From: "Mechi Fendel" <mechif@xxxxxxxxxxxx>
- Date: Sun, 21 Aug 2005 10:47:33 +0200
"winston84" <winstonkl01@xxxxxxxxxxx> wrote in message
news:1BC6FDF6-D085-4AD5-A764-3C8C5697535E@xxxxxxxxxxxxxxxx
>I found the error.
>
> I created the class c_GrabberCB inside the function AddGrabber, but i have
> to declare the class global.
>
> But now I've got another question:
> How do I get a pointer to the buffer, where I can work on the buffer?
> I have read something about in the SampleCB function, but there I only got
> a
> pointer to the IMediaSample-Object?
> Can I call there the GetPointer-function to get the pointer?
>
> Am I on the right way?
>
If you use the 2nd SampleGrabber function - you get a pointer to the buffer:
STDMETHODIMP BufferCB( double SampleTime, BYTE * pBuffer, long
BufferSize )
just change:
pSGrabber->SetCallback(&c_GrabberCB, 0);
to
pSGrabber->SetCallback(&c_GrabberCB, 1); <-- 2nd function
Mechi
.
- References:
- unknown software exception with SampleGrabber
- From: winston84
- Re: unknown software exception with SampleGrabber
- From: Iain
- Re: unknown software exception with SampleGrabber
- From: winston84
- unknown software exception with SampleGrabber
- Prev by Date: Re: Stalled MPEG playback using GDCL Sample Parser
- Next by Date: Problems with New Directshow samples Use
- Previous by thread: Re: unknown software exception with SampleGrabber
- Next by thread: problem windowless VMR7/VMR9 + capture to AVI file + multiple moni
- Index(es):
Relevant Pages
|