BaseSink.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 gstreamer.Caps on the sample can be used to determine the type of the buffer.

Free-function: gst_sample_unref

class BaseSink
getLastSample
()

Return Value

Type: Sample

a gstreamer.Sample Sample.unref after usage. This function returns NULL when no buffer has arrived in the sink yet or when the sink is not in PAUSED or PLAYING.