Section.this

Creates a new GstMpegtsSection from the provided data.

Note: Ensuring data is big enough to contain the full section is the responsibility of the caller. If it is not big enough, NULL will be returned.

Note: it is the responsibility of the caller to ensure data does point to the beginning of the section.

  1. this(GstMpegtsSection* gstMpegtsSection, bool ownedRef)
  2. this(ushort pid, ubyte[] data)
    class Section
    this
    (
    ushort pid
    ,
    ubyte[] data
    )

Parameters

pid ushort

the PID to which this section belongs

data ubyte[]

a pointer to the beginning of the section (i.e. the first byte should contain the table_id field).

Return Value

A new GstMpegtsSection if the data was valid, else NULL

Throws

ConstructionException GTK+ fails to create the object.