Class (GI Struct)

Gst-1.0GstSample

A Gst.Sample is a small object containing data, a type, timing and extra arbitrary information.

Index

Constructors

Properties

$gtype: GType<Sample>

Methods

  • Get the buffer associated with sample

    Returns Gst.Buffer

    the buffer of sample or null when there is no buffer. The buffer remains valid as long as sample is valid. If you need to hold on to it for longer than that, take a ref to the buffer with gst_buffer_ref().

  • Get the buffer list associated with sample

    Returns BufferList

    the buffer list of sample or null when there is no buffer list. The buffer list remains valid as long as sample is valid. If you need to hold on to it for longer than that, take a ref to the buffer list with gst_mini_object_ref ().

  • Get the caps associated with sample

    Returns Gst.Caps

    the caps of sample or null when there is no caps. The caps remain valid as long as sample is valid. If you need to hold on to the caps for longer than that, take a ref to the caps with gst_caps_ref().