From c4c0b034716eff33c817e430c5cab404e0353374 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sun, 6 Jun 2010 20:35:39 +0000 Subject: 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 --- gtk/src/audiohandler.c | 2 ++ gtk/src/hb-backend.c | 1 + gtk/src/internal_defaults.xml | 2 ++ 3 files changed, 5 insertions(+) (limited to 'gtk') 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 @@ Initialization + AudioEncoderActual + angle_count 1 angle -- cgit v1.2.3