次の方法で共有


CTransInPlaceOutputPin::CheckMediaType (Compact 2013)

3/26/2014

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

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CTransInPlaceOutputPin Class