ISectionList::InitializeWithRawSections

 
Microsoft DirectShow 9.0

ISectionList::InitializeWithRawSections

The InitializeWithRawSections method initializes the object with raw section data. This method allows for custom processing of section data.

Syntax

  HRESULT InitializeWithRawSections(
    PMPEG_PACKET_LIST  pmplSections
);

Parameters

pmplSections

[in]  Pointer to an MPEG_PACKET_LIST structure that contains a list of MPEG-2 sections.

Return Values

The method returns an HRESULT. Possible values include those in the following table.

Return code Description
E_INVALIDARG Invalid argument.
MPEG2_E_ALREADY_INITIALIZED The object has already been initialized.
S_OK The method succeeded.

Remarks

Use this method as follows:

  1. Get the section data by calling the IMpeg2Data::GetStreamOfSections method.
  2. Create a new SectionList object and call InitializeWithRawSections with the section data.

Requirements

Header: Include Mpeg2data.h.

See Also