diff options
author | John Stebbins <[email protected]> | 2019-07-12 14:06:18 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-09-10 09:09:52 -0700 |
commit | ed346b4659a7c353cc3f0aee745344e84c051e27 (patch) | |
tree | 7bb4b8f073704d4d42a20fd18e2d7dd29a1c48cf /libhb/lang.h | |
parent | 53d6226c58e9f7bba23f1746bad1d8b61ec6338d (diff) |
Create separate fake iso639 "any" entry
Allows us to distinguish a selection of "any" which means match any
language from "und" which means the language is not known.
Fixes https://github.com/HandBrake/HandBrake/issues/731
Diffstat (limited to 'libhb/lang.h')
-rw-r--r-- | libhb/lang.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libhb/lang.h b/libhb/lang.h index ed3e08e5b..9017de066 100644 --- a/libhb/lang.h +++ b/libhb/lang.h @@ -44,6 +44,15 @@ int lang_to_code(const iso639_lang_t *lang); iso639_lang_t * lang_for_english( const char * english ); /* + * Get fake iso639 cooresponding to "Any" + * "Any" is used when a match for any language is desired. + * + * Calling lang_get_next() with pointer returned by lang_get_any() + * returns the first entry in the languages list + */ +const iso639_lang_t* lang_get_any(void); + +/* * Get the next language in the list. * Returns NULL if there are no more languages. * Pass NULL to get the first language in the list. |