Share via


IBDA_Topology::SetMediaType

 
Microsoft DirectShow 9.0

IBDA_Topology::SetMediaType

The SetMediaType method sets the media type for a pin on a BDA device filter.

Syntax

  HRESULT SetMediaType(
  ULONG  ulPinId,
  AM_MEDIA_TYPE*  pMediaType
);

Parameters

  ulPinId

[in]  The identifier of the pin on which to set the media type.

  pMediaType

[in]  Pointer to an AM_MEDIA_TYPE structure that contains the media type.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Requirements

Header: Include bdaiface.h.

See Also