Compartilhar via


Override CheckInputType (Windows CE 5.0)

Send Feedback

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;
       }

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.