diff options
author | jstebbins <[email protected]> | 2010-06-06 20:35:39 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-06-06 20:35:39 +0000 |
commit | c4c0b034716eff33c817e430c5cab404e0353374 (patch) | |
tree | 5776b50c94eee53bec4a1ea171ac86024a1910a0 | |
parent | 9e1d9791ea206b141a01ca9ced55faff6936a315 (diff) |
LinGui: fix some spam in the log about hash item not found
audio encoder item wasn't always getting initialized
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3365 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | gtk/src/audiohandler.c | 2 | ||||
-rw-r--r-- | gtk/src/hb-backend.c | 1 | ||||
-rw-r--r-- | gtk/src/internal_defaults.xml | 2 |
3 files changed, 5 insertions, 0 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c index da1044ef1..3179c9359 100644 --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -644,6 +644,8 @@ audio_add_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud) ghb_settings_take_value(asettings, "AudioTrack", ghb_widget_value(widget)); widget = GHB_WIDGET(ud->builder, "AudioEncoder"); ghb_settings_take_value(asettings, "AudioEncoder", ghb_widget_value(widget)); + ghb_settings_set_value(asettings, "AudioEncoderActual", + ghb_settings_get_value(ud->settings, "AudioEncoderActual")); widget = GHB_WIDGET(ud->builder, "AudioBitrate"); ghb_settings_take_value(asettings, "AudioBitrate", ghb_widget_value(widget)); widget = GHB_WIDGET(ud->builder, "AudioSamplerate"); diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 8f1ac95fb..11eecbf2a 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -1071,6 +1071,7 @@ ghb_lookup_acodec_value(gint val) break; } } + value = ghb_string_value_new("auto"); return value; } diff --git a/gtk/src/internal_defaults.xml b/gtk/src/internal_defaults.xml index 3a67e42f3..2bda44783 100644 --- a/gtk/src/internal_defaults.xml +++ b/gtk/src/internal_defaults.xml @@ -4,6 +4,8 @@ <dict> <key>Initialization</key> <dict> + <key>AudioEncoderActual</key> + <string></string> <key>angle_count</key> <integer>1</integer> <key>angle</key> |