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 #GstCaps 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 #GstSample. gst_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.

Meta