Gst.Sample.new

function new(buffer:Gst.Buffer, caps:Gst.Caps, segment:Gst.Segment, info:Gst.Structure):Gst.Sample {
    // Gjs wrapper for gst_sample_new()
}

Create a new Gst.Sample with the provided details.

Free-function: gst_sample_unref

buffer

a Gst.Buffer, or NULL

caps

a Gst.Caps, or NULL

segment

a Gst.Segment, or NULL

info

a Gst.Structure, or NULL

Returns

the new Gst.Sample. gst_sample_unref() after usage.