> Can someone explain what the iPosition parameter
> use for? The DirectShow SDK only says that Zero-based
> index value.
Assuming you mean CBasePin::GetMediaType(), that is not all
the docs say: <<<[...] retrieves a preferred media type, by
index value [...] this method returns the type with an index
value of iPosition [...]>>>.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
>From: "NewToDirectShow"
>
>> Can someone explain what the iPosition parameter
>> use for? The DirectShow SDK only says that Zero-based
>> index value.
>
>Assuming you mean CBasePin::GetMediaType(), that is not all
>the docs say: <<<[...] retrieves a preferred media type, by
>index value [...] this method returns the type with an index
>value of iPosition [...]>>>.
In fact, the most useful documentation is the source code to the base
classes. Look at CEnumMediaTypes::Next: this method implements the
(relatively complicated) IEnumMediaTypes interface by calling the
(slightly simpler) GetMediaType method. The iPosition parameter is
used to perform a simple enumeration.
G