Support tag language

This commit is contained in:
complexlogic
2023-10-08 08:11:01 -07:00
committed by Urs Fleisch
parent b4e79a4a27
commit 6342f00e8b
7 changed files with 64 additions and 13 deletions

View File

@ -44,6 +44,8 @@ int main(int argc, char *argv[])
PRINT_PRETTY("Target Type Value",
targetTypeValue == 0 ? "None" : TagLib::Utils::formatString("%i", targetTypeValue).toCString(false)
);
const TagLib::String &language = t->language();
PRINT_PRETTY("Language", !language.isEmpty() ? language.toCString(false) : "Not set");
printf("\n");
}

View File

@ -23,6 +23,7 @@ int main(int argc, char *argv[])
simpleTag->setName("Test Name 1");
simpleTag->setTargetTypeValue(TagLib::Matroska::SimpleTag::TargetTypeValue::Track);
simpleTag->setValue("Test Value 1");
simpleTag->setLanguage("en");
tag->addSimpleTag(simpleTag);
simpleTag = new TagLib::Matroska::SimpleTagString();