Microsoft DirectX 8.1 (C++)

IMPEG2PIDMap::UnmapPID

The UnmapPID method unmaps the PID mapping created in a previous call to MapPID.

Syntax

HRESULT UnmapPID(
  ULONG culPID,
  ULONG* pulPID
);

Parameters

culPID

[in] Variable of type ULONG that specifies the number of elements in the pulPID array.

pulPID

[in] Specifies an array of PIDs mapped for this pin.

Return Value

Returns S_OK if successful. If the method fails, it returns an HRESULT error code.

Remarks

On output pins for audio and video streams, there will typically be only one PID mapped at any given time. On an output pin such as one delivering the PSI stream to the Transport Information Filter, there may be multiple PIDs mapped to a single pin. Use the IEnumPIDMap methods to determine which PIDs are mapped to the pin, and then fill in the pulPID array with those values.

See Also