From c3c252b32c3c4e91ca653a983d9aea11c3f39a41 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 18 Sep 2005 12:23:42 +0000 Subject: [PATCH] Only activate the aspect ratio inputs if the current track is not being appended to another one. --- ChangeLog | 4 ++++ src/mmg/tab_input.cpp | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7aa847d7b..556c1ec32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-09-18 Moritz Bunkus + * mmg: bug fix: If a video track was selected that was appended to + another track then the aspect ratio drop down box was still + active. + * mkvmerge: new feature: MPEG-4 part 2 streams are searched for the pixel width/height values. Those are taken if they differ from those values in the source container. This is a work-around for diff --git a/src/mmg/tab_input.cpp b/src/mmg/tab_input.cpp index 9a4789fca..b2aee1c03 100644 --- a/src/mmg/tab_input.cpp +++ b/src/mmg/tab_input.cpp @@ -675,11 +675,11 @@ tab_input::enable_ar_controls(mmg_track_t *track) { bool ar_enabled; ar_enabled = !track->display_dimensions_selected; - cob_aspect_ratio->Enable(ar_enabled); - tc_display_width->Enable(!ar_enabled); - tc_display_height->Enable(!ar_enabled); - rb_aspect_ratio->SetValue(ar_enabled); - rb_display_dimensions->SetValue(!ar_enabled); + cob_aspect_ratio->Enable(ar_enabled && !track->appending); + tc_display_width->Enable(!ar_enabled && !track->appending); + tc_display_height->Enable(!ar_enabled && !track->appending); + rb_aspect_ratio->SetValue(ar_enabled && !track->appending); + rb_display_dimensions->SetValue(!ar_enabled && !track->appending); } void