Microsoft Windows CE 3.0  

Override CheckInputType

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

You must override the CheckInputTypefunction to determine if the proposed input to your filter is valid. (This does not apply to filter classes derived from CBaseFilter.) Your implementation should return an error for media types it can't support. The media types your filter supports are listed in the AMOVIESETUP_MEDIATYPEstructure. For example:

HRESULT CMyFilter::CheckInputType(const
CMediaType *pmt) { if (pmt->majortype != MEDIATYPE_Video) {
return S_FALSE; } else return S_OK; }


 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.