Upon loading settings some settings were not loaded correctly (strings were not allocated). Some settings were not saved either.

This commit is contained in:
Moritz Bunkus 2003-12-03 21:42:20 +00:00
parent 079a9c4c15
commit b2d9833f2b
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2003-12-03 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: The "load settings" function did not load all
settings, and some strings were not allocated at all resulting in
a crash when a track was removed after loading these settings.
* mkvmerge: bug fix: The AAC packetizer was not working if packets
were being read from a raw AAC file (it worked fine from MP4 and
Matroska files).

View File

@ -1057,6 +1057,7 @@ void tab_input::load(wxConfigBase *cfg) {
f = &files[fidx];
delete f->file_name;
delete f->title;
for (tidx = 0; tidx < f->tracks->size(); tidx++) {
t = &(*f->tracks)[tidx];
@ -1095,6 +1096,8 @@ void tab_input::load(wxConfigBase *cfg) {
continue;
}
fi.file_name = new wxString(s);
cfg->Read("title", &s);
fi.title = new wxString(s);
cfg->Read("container", &fi.container);
fi.no_chapters = false;
cfg->Read("no_chapters", &fi.no_chapters);