CBasePin::CheckMediaType (Compact 2013)

3/26/2014

This member function is used to verify whether a media type is supported on a pin.

Syntax

virtual HRESULT CheckMediaType(
  const CMediaType* pmt
) PURE;

Parameters

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

Return Value

The overriding member function should return S_OK if the proposed media type is accepted; otherwise, it should return an HRESULT failure value, such as S_FALSE.

Remarks

This member function is typically called before calling the CBasePin::SetMediaType member function.

It is also called from several other member functions, including CBasePin::ReceiveConnection and CBasePin::QueryAccept.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CBasePin Class