Share via


Override CheckInputType (Windows Embedded CE 6.0)

1/6/2010

You must override the CheckInputType function 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 cannot support.

The media types your filter supports are listed in the AMOVIESETUP_MEDIATYPE structure. For example:

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

See Also

Concepts

Write a Transform Filter in C/C++