Commit graph

9 commits

Author SHA1 Message Date
Tim-Philipp Müller 76cc8b8f2a tag: add function to check whether a string is a valid language code
API: gst_tag_check_language_code()
2012-01-02 01:04:00 +00:00
Stefan Kost 9b8992cbf1 lang: fix possible array overrun
We where checking for i<G_N_ELEMENTS, but where accessing i+1.
2011-05-20 10:49:54 +03:00
Tim-Philipp Müller 78f33715ff libs: use GLib 2.22 API unconditionally 2010-12-04 14:45:58 +00:00
Benjamin Otte 43b1683421 Add -Wmissing-declarations -Wmissing-prototypes to warning flags
Includes all the fixes necessary to make stuff compile again.
2010-03-11 13:50:31 +01:00
Tim-Philipp Müller 17e1d8d20a tag: fix up disting of lang-tables.c more correctly
lang-tables.c is included by lang.c and not really a proper source
file that should be compiled into its own object, so rename it to
lang-tables.dat and put it into EXTRA_DIST instead to ensure it
gets disted.
2010-01-07 15:49:53 +00:00
Tim-Philipp Müller 98fc463f31 docs: use 'Returns: xyz' rather than 'Returns xyz' to make gtk-doc happy 2009-12-21 07:57:42 +00:00
Tim-Philipp Müller b529a33105 docs: mention that gst_tag_get_language_name() may return NULL 2009-12-13 18:43:56 +00:00
Tim-Philipp Müller 3361d3286d tag: don't use GLib 2.22 API
g_mapped_file_unref() was introduced in GLib 2.22, but we depend
only on GLib 2.18, so use g_mapped_file_free() when compiling
against older GLib versions until we bump the GLib dependency.
2009-12-12 17:41:44 +00:00
Tim-Philipp Müller 088c7c07a2 tag: add some utility functions for language codes and tags
Add some utility functions for language tags and ISO-639
codes. These are useful for both GUIs and elements. The
iso-codes package is used for language name translations
if available.

API: gst_tag_get_language_codes()
API: gst_tag_get_language_name()
API: gst_tag_get_language_code()
API: gst_tag_get_language_code_iso_639_1()
API: gst_tag_get_language_code_iso_639_2B()
API: gst_tag_get_language_code_iso_639_2T()
2009-12-12 15:48:37 +00:00