summaryrefslogtreecommitdiffstats
path: root/gtk/src/presets.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-10-16 17:33:20 +0000
committerjstebbins <[email protected]>2011-10-16 17:33:20 +0000
commit49fad04f4365f0c3c01583dabd8d261ec76505f3 (patch)
treedee0f99ba705f57f21bffa8390380974a521ffba /gtk/src/presets.c
parentcf10a485d3892f8d2d055c62ba0b853a7286bd57 (diff)
LinGui: experimental support for batch queuing
This allows all titles in the title popup to be added to the queue in one go. It uses the current *preset* for the settings. I.e. settings changes in the UI are ignored. This deficiency will be rectified at a future time. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4294 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/presets.c')
-rw-r--r--gtk/src/presets.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index 8305c4ae3..2f46cda4c 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -4230,14 +4230,11 @@ ghb_refresh_preset(signal_user_data_t *ud)
GtkWidget *qp = GHB_WIDGET(ud->builder, "VideoQualitySlider");
gtk_range_set_range (GTK_RANGE(qp), 0, 100);
gtk_scale_set_digits(GTK_SCALE(qp), 3);
- // Clear the audio list prior to changing the preset. Existing
- // audio can cause the container extension to be automatically
- // changed when it shouldn't be
- ghb_clear_audio_list(ud);
ghb_set_preset_from_indices(ud, indices, len);
gint titleindex;
titleindex = ghb_settings_combo_int(ud->settings, "title");
- ghb_set_pref_audio(titleindex, ud);
+ ghb_set_pref_audio_settings(titleindex, ud->settings);
+ ghb_set_pref_audio_from_settings(ud, ud->settings);
ghb_set_pref_subtitle(titleindex, ud);
ghb_settings_set_boolean(ud->settings, "preset_modified", FALSE);
if (ghb_get_title_info (&tinfo, titleindex))
@@ -4310,14 +4307,11 @@ presets_list_selection_changed_cb(GtkTreeSelection *selection, signal_user_data_
GtkWidget *qp = GHB_WIDGET(ud->builder, "VideoQualitySlider");
gtk_range_set_range (GTK_RANGE(qp), 0, 100);
gtk_scale_set_digits(GTK_SCALE(qp), 3);
- // Clear the audio list prior to changing the preset. Existing
- // audio can cause the container extension to be automatically
- // changed when it shouldn't be
- ghb_clear_audio_list(ud);
ghb_set_preset_from_indices(ud, indices, len);
gint titleindex;
titleindex = ghb_settings_combo_int(ud->settings, "title");
- ghb_set_pref_audio(titleindex, ud);
+ ghb_set_pref_audio_settings(titleindex, ud->settings);
+ ghb_set_pref_audio_from_settings(ud, ud->settings);
ghb_set_pref_subtitle(titleindex, ud);
ghb_settings_set_boolean(ud->settings, "preset_modified", FALSE);
if (ghb_get_title_info (&tinfo, titleindex))