Author: Chris P.Chris P. Date: Dec 5, 2006 06:33
On Tue, 5 Dec 2006 10:52:51 -0000, mark wrote:
...
> I understood the sample grabber would do the conversion for me if I set the
> media type correctly, are there other conversion routines? I set the media
> type like this:
Not entirely correct. The SampleGrabber doesn't do any conversion at all.
What actually happens is that the graph manager will discover when it
attempts to connect the pins that your pin for the SampleGrabber is
incompatible, and Intelligent Connect will search for intermediate filters
to do the conversion. This will result in a decoder filter of some
description being inserted.
> One thing I have noticed after stepping through the code is that I use
> IMediaSeeking::SetPositoins() to set the position of the chunk to be
> decoded. First time through current = 0 and stop = amount of time to decode
> this is fine, next time round when current = last stop time and stop = stop
> + amount to decode the call fails, it returns S_FALSE which suggests the
> positions were already set. I use AM_SEEKING_AbsolutePositioning and I have
> checked the media supports positioning.
|