Share via


ISectionList::InitializeWithRawSections Method

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

Syntax

HRESULT InitializeWithRawSections(
  [in]  PMPEG_PACKET_LIST pmplSections
);

Parameters

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

Return Value

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 Declared in Mpeg2data.h.

See Also

ISectionList Interface

Send comments about this topic to Microsoft

Build date: 12/4/2008