Partager via


IMpeg2PsiParser::FindRecordProgramMapPid method

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

The FindRecordProgramMapPid method finds the PMT PID for a program, given the program number.

Syntax

HRESULT FindRecordProgramMapPid(
  [in]  WORD wProgramNumber,
  [out] WORD *pwVal
);

Parameters

  • wProgramNumber [in]
    Specifies the program_number field of the PMT, as given in the PAT. Use the GetRecordProgramNumber method to obtain the program number.

  • pwVal [out]
    Pointer to a variable that receives the program_map_ID field.

Return value

This method returns an HRESULT value. Possible return codes 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

IMpeg2PsiParser::GetRecordProgramMapPid

PSI Parser Filter Sample