TagList.getSample

Copies the first sample for the given tag in the taglist into the variable pointed to by sample. Free the sample with Sample.unref when it is no longer needed. You can retrieve the buffer from the sample using Sample.getBuffer and the associated caps (if any) with Sample.getCaps.

Free-function: gst_sample_unref

class TagList
bool
getSample
(
string tag
,)

Parameters

tag string

tag to read out

sample Sample

address of a GstSample pointer variable to store the result into

Return Value

Type: bool

TRUE, if a sample was returned, FALSE if the tag didn't exist in the given list or if it was NULL.