Поделиться через


IMpeg2PsiParser::GetCountOfElementaryStreams

 
Microsoft DirectShow 9.0

IMpeg2PsiParser::GetCountOfElementaryStreams

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

The GetCountOfElementaryStreams method retrieves the number of elementary streams in a specified program.

Syntax

  HRESULT GetCountOfElementaryStreams(
    WORD wProgramNumber,
    WORD *pwVal
);

Parameters

wProgramNumber

[in]  Specifies the program_number field for the program, as given in the PAT.

pwVal

[out]  Pointer to a variable that receives the number of elementary streams in the program.

Return Values

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

Value Description
S_OK Success.

Remarks

Use the GetRecordProgramNumber method to obtain the program number.

See Also