CTransInPlaceOutputPin::CheckMediaType

 
Microsoft DirectShow 9.0

CTransInPlaceOutputPin::CheckMediaType

The CheckMediaType method determines if the pin accepts a specific media type.

Syntax

  HRESULT CheckMediaType(
    const CMediaType *pmt
);

Parameters

pmt

Pointer to a CMediaType object that contains the proposed media type.

Return Value

Returns an HRESULT value. Possible values include those shown in the following table.

Value Description
S_OK Success.
VFW_E_TYPE_NOT_ACCEPTED Media type not accepted.

Remarks

This method overrides the CTransformOutputPin::CheckMediaType method.

If the filter is already streaming and is using two allocators, this method rejects any format changes. Otherwise, this method calls the filter's CTransformFilter::CheckInputType method to check the media type. If the input pin is connected, it also calls the IPin::QueryAccept method on the upstream output pin.

Requirements

**  Header:** Declared in Transip.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also