BaseSink.enableLastSample

bool enableLastSample() @property

Get enableLastSample property.

Returns

Enable the last-sample property. If false, basesink doesn't keep a

reference to the last buffer arrived and the last-sample property is always set to null. This can be useful if you need buffers to be released as soon as possible, eg. if you're using a buffer pool.

void enableLastSample(bool propval) @property

Set enableLastSample property.

Parameters

propvalEnable the last-sample property. If false, basesink doesn't keep a reference to the last buffer arrived and the last-sample property is always set to null. This can be useful if you need buffers to be released as soon as possible, eg. if you're using a buffer pool.