diff --git a/ChangeLog b/ChangeLog index 6ee3bfd51..b3a3fc737 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2003-11-05 Moritz Bunkus + + * mmg: bug fix: When 'default track' is selected then all other + tracks of the same type will have their 'default track' flag + cleared. + + * mkvmerge: SPU packets belonging to the same timecode are grouped + together, and the duration is extracted directly from the SPU + stream. + 2003-10-29 Moritz Bunkus * mkvmerge: The VobSubs are now stripped of the MPEG program diff --git a/src/mmg/tab_input.cpp b/src/mmg/tab_input.cpp index ad718f7df..68fada09a 100644 --- a/src/mmg/tab_input.cpp +++ b/src/mmg/tab_input.cpp @@ -609,11 +609,22 @@ void tab_input::on_track_enabled(wxCommandEvent &evt) { } void tab_input::on_default_track_clicked(wxCommandEvent &evt) { + uint32_t i, k; + mmg_track_t *t; + if ((selected_file == -1) || (selected_track == -1)) return; - (*files[selected_file].tracks)[selected_track].default_track = - cb_default->GetValue(); + t = &(*files[selected_file].tracks)[selected_track]; + t->default_track = cb_default->GetValue(); + if (cb_default->GetValue()) + for (i = 0; i < files.size(); i++) { + if (i != selected_file) + for (k = 0; k < files[i].tracks->size(); k++) + if ((k != selected_track) && + ((*files[i].tracks)[k].type == t->type)) + (*files[i].tracks)[k].default_track = false; + } } void tab_input::on_aac_is_sbr_clicked(wxCommandEvent &evt) {