Tidy up handling of language metadata for subtitles.
authorCarl Hetherington <cth@carlh.net>
Thu, 19 Nov 2020 23:40:35 +0000 (00:40 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 19 Nov 2020 23:40:35 +0000 (00:40 +0100)
commitf614b4526cd06a4d28b46bd2d98a55d56b97b14f
tree1eaf03b5e145a0cb7d8a42a37c1b8e6240c6ac23
parentd989a83517fd77aa241c1423ac00cfed62d567fe
Tidy up handling of language metadata for subtitles.

Tried to normalise the idea that subtitle languages are stored as
strings but set as LanguageTags.  This may be too defensive; perhaps
SMPTE language metadata is always right, or perhaps even if it isn't
we should throw errors.
src/cpl.cc
src/language_tag.h
src/reel_subtitle_asset.cc
src/reel_subtitle_asset.h
src/smpte_subtitle_asset.h
test/cpl_metadata_test.cc
test/reel_asset_test.cc
test/write_subtitle_test.cc