diff options
author | jstebbins <[email protected]> | 2008-07-30 23:42:55 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-07-30 23:42:55 +0000 |
commit | b22fd6b62c3f13000d36f8badc297b872f5b7a45 (patch) | |
tree | d7bd791547b1f8fda493a43d69a6d4fc3dffd87b /gtk/src/callbacks.c | |
parent | bec5dee00e2b3f3c1cd0c9797e281eabeb19a4d7 (diff) |
LinGui: change extension from mp4 to m4v if there is an ac3 output track
disable ac3 passthru option if http optimized is selected
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1598 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index b5646d3c6..78b393b6e 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -824,6 +824,16 @@ container_changed_cb(GtkWidget *widget, signal_user_data_t *ud) check_depencency(ud, widget); update_acodec_combo(ud); clear_presets_selection(ud); + if (ghb_ac3_in_audio_list (ud->audio_settings)) + { + const gchar *container; + + container = ghb_settings_get_string(ud->settings, "container"); + if (strcmp(container, "mp4") == 0) + { + ghb_ui_update(ud, "container", "m4v"); + } + } } static gchar* @@ -1168,6 +1178,16 @@ audio_codec_changed_cb(GtkWidget *widget, signal_user_data_t *ud) ghb_widget_to_setting(asettings, widget); audio_list_refresh_selected(ud); } + if (ghb_ac3_in_audio_list (ud->audio_settings)) + { + const gchar *container; + + container = ghb_settings_get_string(ud->settings, "container"); + if (strcmp(container, "mp4") == 0) + { + ghb_ui_update(ud, "container", "m4v"); + } + } } static void audio_list_refresh_selected(signal_user_data_t *ud); @@ -1221,6 +1241,15 @@ setting_widget_changed_cb(GtkWidget *widget, signal_user_data_t *ud) } void +http_opt_changed_cb(GtkWidget *widget, signal_user_data_t *ud) +{ + ghb_widget_to_setting(ud->settings, widget); + check_depencency(ud, widget); + clear_presets_selection(ud); + ghb_grey_combo_options (ud->builder); +} + +void vcodec_changed_cb(GtkWidget *widget, signal_user_data_t *ud) { gint vqmin, vqmax; @@ -2362,6 +2391,11 @@ validate_settings(signal_user_data_t *ud) { return FALSE; } + // Validate container settings + if (!ghb_validate_container(ud)) + { + return FALSE; + } audio_list_refresh(ud); return TRUE; } |