Share via


IMpeg2PsiParser::GetRecordProgramMapPid method

The implementation of this method is provided as sample code with the DirectShow SDK. It is not a supported DirectShow API.

The GetRecordProgramMapPid method retrieves the PID assignment for a specified PMT.

Syntax

HRESULT GetRecordProgramMapPid(
  [in]  DWORD dwIndex,
  [out] WORD  *pwVal
);

Parameters

  • dwIndex [in]
    Specifies the PMT entry in the PAT, indexed from zero.

  • pwVal [out]
    Pointer to a variable that receives the program_map_PID field from the PAT.

Return value

The method returns an HRESULT value. Possible values include, but are not limited to, the values shown in the following table.

Return code Description
S_OK

Success.

 

Remarks

The returned value gives the PID assignment for the PMT sections that define the program. To get the PID assignments for the elementary streams in the program, call the GetRecordElementaryPid method.

Requirements

Header

Mpeg2psiparser.h

See also

IMpeg2PsiParser Interface

PSI Parser Filter Sample