Also write default values for chapters (the language).

This commit is contained in:
Moritz Bunkus 2004-01-24 18:39:31 +00:00
parent 553405e158
commit 66e3fd6ce1

View File

@ -2130,7 +2130,7 @@ void create_next_output_file(bool last_file, bool first_file) {
evoid.Render(*out);
}
} else {
kax_chapters->Render(*out);
kax_chapters->Render(*out, true);
if (hack_engaged(ENGAGE_SPACE_AFTER_CHAPTERS)) {
EbmlVoid evoid;
evoid.SetSize(100);
@ -2189,7 +2189,7 @@ void finish_file() {
chapters_here = select_chapters_in_timeframe(chapters_here, start, end,
offset, false);
if (chapters_here != NULL)
kax_chapters_void->ReplaceWith(*chapters_here, *out, true);
kax_chapters_void->ReplaceWith(*chapters_here, *out, true, true);
delete kax_chapters_void;
kax_chapters_void = NULL;
} else