get_sample_index


Description:

public bool get_sample_index (string tag, uint index, out Sample sample)

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 get_buffer and the associated caps (if any) with get_caps.

Free-function: gst_sample_unref

Parameters:

this

a TagList to get the tag from

tag

tag to read out

index

number of entry to read out

sample

address of a GstSample pointer variable to store the result into

Returns:

true, if a sample was copied, false if the tag didn't exist in the given list or if it was null.