Class (GI Struct)

Gst-1.0GstTagList

List of tags and values used to describe media metadata.

Strings in structures must be ASCII or UTF-8 encoded. Other encodings are not allowed. Strings must not be empty or null.

Index

Constructors

Properties

$gtype: GType<TagList>

Methods

  • Creates a new Gst.TagList as a copy of the old taglist. The new taglist will have a refcount of 1, owned by the caller, and will be writable as a result.

    Note that this function is the semantic equivalent of a gst_tag_list_ref() followed by a gst_tag_list_make_writable(). If you only want to hold on to a reference to the data, you should use gst_tag_list_ref().

    When you are finished with the taglist, call gst_tag_list_unref() on it.

    Returns TagList

    the new Gst.TagList

  • Calls the given function for each tag inside the tag list. Note that if there is no tag, the function won't be called at all.

    Parameters

    Returns void

  • Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.

    Parameters

    • tag: string

      tag to read out

    Returns [boolean, boolean]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Gets the value that is at the given index for the given tag in the given list.

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, boolean]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Copies the first date for the given tag in the taglist into the variable pointed to by value. Free the date with g_date_free() when it is no longer needed.

    Free-function: g_date_free

    Parameters

    • tag: string

      tag to read out

    Returns [boolean, GLib.Date]

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

  • Gets the date that is at the given index for the given tag in the given list and copies it into the variable pointed to by value. Free the date with g_date_free() when it is no longer needed.

    Free-function: g_date_free

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, GLib.Date]

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

  • Copies the first datetime for the given tag in the taglist into the variable pointed to by value. Unref the date with gst_date_time_unref() when it is no longer needed.

    Free-function: gst_date_time_unref

    Parameters

    • tag: string

      tag to read out

    Returns [boolean, Gst.DateTime]

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

  • Gets the datetime that is at the given index for the given tag in the given list and copies it into the variable pointed to by value. Unref the datetime with gst_date_time_unref() when it is no longer needed.

    Free-function: gst_date_time_unref

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, Gst.DateTime]

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

  • Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.

    Parameters

    • tag: string

      tag to read out

    Returns [boolean, number]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Gets the value that is at the given index for the given tag in the given list.

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, number]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.

    Parameters

    • tag: string

      tag to read out

    Returns [boolean, number]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Gets the value that is at the given index for the given tag in the given list.

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, number]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.

    Parameters

    • tag: string

      tag to read out

    Returns [boolean, number]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Gets the value that is at the given index for the given tag in the given list.

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, number]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.

    Parameters

    • tag: string

      tag to read out

    Returns [boolean, number]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Gets the value that is at the given index for the given tag in the given list.

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, number]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.

    Parameters

    • tag: string

      tag to read out

    Returns [boolean, any]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Gets the value that is at the given index for the given tag in the given list.

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, any]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Copies the first sample for the given tag in the taglist 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

    Parameters

    • tag: string

      tag to read out

    Returns [boolean, Sample]

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

  • 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

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, Sample]

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

  • Copies the contents for the given tag into the value, possibly merging multiple values into one if multiple values are associated with the tag.

    Use gst_tag_list_get_string_index (list, tag, 0, value) if you want to retrieve the first string associated with this tag unmodified.

    The resulting string in value will be in UTF-8 encoding and should be freed by the caller using g_free when no longer needed. The returned string is also guaranteed to be non-null and non-empty.

    Free-function: g_free

    Parameters

    • tag: string

      tag to read out

    Returns [boolean, string]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Gets the value that is at the given index for the given tag in the given list.

    The resulting string in value will be in UTF-8 encoding and should be freed by the caller using g_free when no longer needed. The returned string is also guaranteed to be non-null and non-empty.

    Free-function: g_free

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, string]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Checks how many value are stored in this tag list for the given tag.

    Parameters

    • tag: string

      the tag to query

    Returns number

    The number of tags stored

  • Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.

    Parameters

    • tag: string

      tag to read out

    Returns [boolean, number]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Gets the value that is at the given index for the given tag in the given list.

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, number]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag.

    Parameters

    • tag: string

      tag to read out

    Returns [boolean, number]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Gets the value that is at the given index for the given tag in the given list.

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, number]

    true, if a value was copied, false if the tag didn't exist in the given list.

  • Gets the value that is at the given index for the given tag in the given list.

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns GObject.Value | null

    The GValue for the specified entry or null if the tag wasn't available or the tag doesn't have as many entries

  • Checks if the given taglist is empty.

    Returns boolean

    true if the taglist is empty, otherwise false.

  • Tests if you can safely modify taglist. It is only safe to modify taglist when there is only one owner of the taglist - ie, the object is writable.

    Returns boolean

  • Returns a writable copy of taglist.

    If there is only one reference count on taglist, the caller must be the owner, and so this function will return the taglist object unchanged. If on the other hand there is more than one reference on the object, a new taglist object will be returned. The caller's reference on taglist will be removed, and instead the caller will own a reference to the returned object.

    In short, this function unrefs the taglist in the argument and refs the taglist that it returns. Don't access the argument after calling this function. See also: gst_tag_list_ref().

    Returns TagList

    a writable taglist which may or may not be the same as taglist

  • Get the name of the tag in list at index.

    Parameters

    • index: number

      the index

    Returns string

    The name of the tag at index.

  • Peeks at the value that is at the given index for the given tag in the given list.

    The resulting string in value will be in UTF-8 encoding and doesn't need to be freed by the caller. The returned string is also guaranteed to be non-null and non-empty.

    Parameters

    • tag: string

      tag to read out

    • index: number

      number of entry to read out

    Returns [boolean, string]

    true, if a value was set, false if the tag didn't exist in the given list.

  • Add a reference to a Gst.TagList mini object.

    From this point on, until the caller calls gst_tag_list_unref() or gst_tag_list_make_writable(), it is guaranteed that the taglist object will not change. To use a Gst.TagList object, you must always have a refcount on it -- either the one made implicitly by e.g. gst_tag_list_new(), or via taking one explicitly with this function.

    Returns TagList

    the same Gst.TagList mini object.

  • Removes the given tag from the taglist.

    Parameters

    • tag: string

      tag to remove

    Returns void

  • Serializes a tag list to a string.

    Returns string

    a newly-allocated string. The string must be freed with g_free() when no longer needed.

  • Copies the contents for the given tag into the value, merging multiple values into one if multiple values are associated with the tag. You must g_value_unset() the value after use.

    Parameters

    • list: TagList

      list to get the tag from

    • tag: string

      tag to read out

    Returns [boolean, unknown]

  • Modifies a pointer to a Gst.TagList to point to a different Gst.TagList. The modification is done atomically (so this is useful for ensuring thread safety in some cases), and the reference counts are updated appropriately (the old tag list is unreffed, the new is reffed).

    Either new_taglist or the Gst.TagList pointed to by old_taglist may be null.

    Parameters

    • old_taglist: TagList | null

      pointer to a pointer to a Gst.TagList to be replaced.

    • new_taglist: TagList | null

      pointer to a Gst.TagList that will replace the tag list pointed to by old_taglist.

    Returns [boolean, TagList | null]