diff options
author | jstebbins <[email protected]> | 2010-06-08 01:37:06 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-06-08 01:37:06 +0000 |
commit | 1771d1652c81af218fd366cab8be991f19c27e49 (patch) | |
tree | 6e8d80ee6696bab40903704a68e304087ad9b346 /gtk/src/audiohandler.c | |
parent | 6874e350d53bb2e362da011d7f9c0a3befcd7e6b (diff) |
LinGui: fix some problems i introduced with the recent audio tab changes
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3370 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/audiohandler.c')
-rw-r--r-- | gtk/src/audiohandler.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c index 35f982ba4..e11d4e061 100644 --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -226,14 +226,18 @@ ghb_set_pref_audio(gint titleindex, signal_user_data_t *ud) { GValue *settings = ghb_dict_value_new(); ghb_settings_set_int(settings, "AudioTrack", track); - ghb_settings_set_int(settings, "AudioEncoder", acodec); + ghb_settings_set_string(settings, "AudioEncoder", + ghb_lookup_combo_string("AudioEncoder", ghb_int_value(acodec))); ghb_settings_set_value(settings, "AudioEncoderActual", ghb_settings_get_value(ud->settings, "AudioEncoderActual")); // This gets set autimatically if the codec is passthru - ghb_settings_set_int(settings, "AudioBitrate", bitrate); - ghb_settings_set_double(settings, "AudioSamplerate", rate); + ghb_settings_set_string(settings, "AudioBitrate", + ghb_lookup_combo_string("AudioBitrate", ghb_int_value(bitrate))); + ghb_settings_set_string(settings, "AudioSamplerate", + ghb_lookup_combo_string("AudioSamplerate", ghb_int_value(rate))); mix = ghb_get_best_mix( titleindex, track, acodec, mix); - ghb_settings_set_int(settings, "AudioMixdown", mix); + ghb_settings_set_string(settings, "AudioMixdown", + ghb_lookup_combo_string("AudioMixdown", ghb_int_value(mix))); ghb_settings_set_value(settings, "AudioTrackDRCSlider", drc); ghb_add_audio(ud, settings); ghb_adjust_audio_rate_combos(ud); |