get_last_sample


Description:

public Sample? get_last_sample ()

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

Free-function: gst_sample_unref

Parameters:

this

the sink

Returns:

a Sample. 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.




2022 vala-language.org