IMpeg2PsiParser::GetRecordStreamType method

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

The GetRecordStreamType method retrieves the stream type for a specified elementary stream in a program.

Syntax

HRESULT GetRecordStreamType(
  [in]  WORD  wProgramNumber,
  [in]  DWORD dwRecordIndex,
  [out] BYTE  *pbVal
);

Parameters

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

  • dwRecordIndex [in]
    Specifies the elementary stream in the program, indexed from zero.

  • pbVal [out]
    Pointer to a variable that receives the stream_type field from the PMT.

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.

 

Requirements

Header

Mpeg2psiparser.h

See also

IMpeg2PsiParser Interface

IMpeg2PsiParser::GetRecordProgramNumber

PSI Parser Filter Sample