parse_extended_comment


Description:


public bool parse_extended_comment (string ext_comment, out string? key, out string? lang, out string value, bool fail_if_no_key)

Convenience function to parse a GST_TAG_EXTENDED_COMMENT string and separate it into its components.

If successful, key, lang and/or value will be set to newly allocated strings that you need to free with g_free when done. key and lang may also be set to NULL by this function if there is no key or no language code in the extended comment string.

Parameters:

ext_comment

an extended comment string, see EXTENDED_COMMENT

key

return location for the comment description key, or NULL

lang

return location for the comment ISO-639 language code, or NULL

value

return location for the actual comment string, or NULL

fail_if_no_key

whether to fail if strings are not in key=value form

Returns:

TRUE if the string could be parsed, otherwise FALSE


Namespace: Gst.Tag



2022 vala-language.org