mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Upon loading settings some settings were not loaded correctly (strings were not allocated). Some settings were not saved either.
This commit is contained in:
parent
079a9c4c15
commit
b2d9833f2b
@ -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).
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user