diff options
author | jstebbins <[email protected]> | 2008-10-15 18:39:45 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-10-15 18:39:45 +0000 |
commit | 8079d10b0c22f7a7270828829286cb9947b8a99d (patch) | |
tree | e03881798433f18d5903bc102c13d48102d7eafa /gtk/src/audiohandler.c | |
parent | 5aab68603cb6b50a0a08c48497174f53ad771caf (diff) |
LinGui: nested presets
new nested builtins.
user can create custom folders and drag n drop custom presets.
updated mac to linux presets plist translation tool to handle new format
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1835 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/audiohandler.c')
-rw-r--r-- | gtk/src/audiohandler.c | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c index 82d0f6000..6c29a874f 100644 --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -25,17 +25,24 @@ ghb_adjust_audio_rate_combos(signal_user_data_t *ud) gint titleindex, audioindex, acodec, mix; ghb_audio_info_t ainfo; GtkWidget *widget; + GValue *gval; g_debug("ghb_adjust_audio_rate_combos ()"); titleindex = ghb_settings_combo_int(ud->settings, "title"); widget = GHB_WIDGET(ud->builder, "audio_track"); - audioindex = ghb_lookup_combo_int("audio_track", ghb_widget_value(widget)); + gval = ghb_widget_value(widget); + audioindex = ghb_lookup_combo_int("audio_track", gval); + ghb_value_free(gval); widget = GHB_WIDGET(ud->builder, "audio_codec"); - acodec = ghb_lookup_combo_int("audio_codec", ghb_widget_value(widget)); + gval = ghb_widget_value(widget); + acodec = ghb_lookup_combo_int("audio_codec", gval); + ghb_value_free(gval); widget = GHB_WIDGET(ud->builder, "audio_mix"); - mix = ghb_lookup_combo_int("audio_mix", ghb_widget_value(widget)); + gval = ghb_widget_value(widget); + mix = ghb_lookup_combo_int("audio_mix", gval); + ghb_value_free(gval); if (ghb_audio_is_passthru (acodec)) { @@ -61,7 +68,9 @@ ghb_adjust_audio_rate_combos(signal_user_data_t *ud) gint br; widget = GHB_WIDGET(ud->builder, "audio_bitrate"); - br = ghb_lookup_combo_int("audio_bitrate", ghb_widget_value(widget)); + gval = ghb_widget_value(widget); + br = ghb_lookup_combo_int("audio_bitrate", gval); + ghb_value_free(gval); if (br > 160) ghb_ui_update(ud, "audio_bitrate", ghb_int64_value(160)); ghb_set_default_bitrate_opts (ud->builder, 160); @@ -275,10 +284,12 @@ audio_codec_changed_cb(GtkWidget *widget, signal_user_data_t *ud) { static gint prev_acodec = 0; gint acodec_code, mix_code; - GValue *asettings; + GValue *asettings, *gval; g_debug("audio_codec_changed_cb ()"); - acodec_code = ghb_lookup_combo_int("audio_codec", ghb_widget_value(widget)); + gval = ghb_widget_value(widget); + acodec_code = ghb_lookup_combo_int("audio_codec", gval); + ghb_value_free(gval); if (ghb_audio_is_passthru (prev_acodec) && !ghb_audio_is_passthru (acodec_code)) { |