diff --git a/src/common/tag_common.cpp b/src/common/tag_common.cpp index 22ffd714f..1a0093b21 100644 --- a/src/common/tag_common.cpp +++ b/src/common/tag_common.cpp @@ -40,15 +40,22 @@ fix_mandatory_tag_elements(EbmlElement *e) { if (dynamic_cast(e) != NULL) { KaxTag &t = *static_cast(e); GetChild(t); + GetChild(t); } else if (dynamic_cast(e) != NULL) { KaxTagSimple &s = *static_cast(e); - GetChild(s); - GetChild(s); + KaxTagName &n = GetChild(s); + *static_cast(&n) = UTFstring(n); + KaxTagLangue &l = GetChild(s); + *static_cast(&l) = string(l); + KaxTagDefault &d = GetChild(s); + *static_cast(&d) = uint64(d); } else if (dynamic_cast(e) != NULL) { KaxTagTargets &t = *static_cast(e); GetChild(t); + KaxTagTargetTypeValue &v = GetChild(t); + *static_cast(&v) = uint64(v); }