Share via


CTransInPlaceOutputPin::CheckMediaType

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Determines if the media type is acceptable.

Syntax

HRESULT CheckMediaType(
  const CMediaType* pmt 
);

Parameters

  • pmt
    Pointer to a media type object containing the proposed media type.

Return Value

Returns S_OK if the pin is not connected. Otherwise, returns S_TRUE if the media type is accepted or S_FALSE if it is not.

Remarks

This member function overrides the CTransformOutputPin::CheckMediaType member function.

It calls the pure virtual CTransformFilter::CheckInputType member function to verify the media type (which you must implement in your derived class) because it does not change the media type from input to output.

If it is not connected, it returns S_OK, which agrees to any media type; otherwise, it calls QueryAccept on the output pin of the upstream filter and returns the result.

Requirements

Windows Embedded CE Windows CE 2.12 and later
Note Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements
For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later