usage. This function returns null when no buffer has arrived in the sink yet or when the sink is not in PAUSED or PLAYING.
BaseSink.getLastSample
gst.sample.Sample getLastSample()Get the last sample that arrived in the sink and was used for preroll or for rendering. This property can be used to generate thumbnails.
The #GstCaps on the sample can be used to determine the type of the buffer.
Free-function: gst_sample_unref
Returns
a #GstSample. gst_sample_unref() after