Caps.getStructure

Finds the structure in caps at index, and returns it.

WARNING: This function takes a const GstCaps *, but returns a non-const GstStructure *. This is for programming convenience -- the caller should be aware that structures inside a constant #GstCaps should not be modified. However, if you know the caps are writable, either because you have just copied them or made them writable with gst_caps_make_writable(), you may modify the structure returned in the usual way, e.g. with functions like gst.structure.Structure.set.

class Caps
getStructure
(
uint index
)

Parameters

index uint

the index of the structure

Return Value

Type: gst.structure.Structure

a pointer to the #GstStructure corresponding to index