TagList.getSampleIndex

Gets the sample that is at the given index for the given tag in the given list and copies it into the variable pointed to by @sample. Free the sample with gst_sample_unref() when it is no longer needed. You can retrieve the buffer from the sample using gst_sample_get_buffer() and the associated caps (if any) with gst_sample_get_caps().

Free-function: gst_sample_unref

class TagList
bool
getSampleIndex
(
string tag
,
uint index
,)

Parameters

tag string

tag to read out

index uint

number of entry 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 copied, %FALSE if the tag didn't exist in the given list or if it was %NULL.

Meta