diff options
author | jstebbins <[email protected]> | 2009-09-09 21:41:27 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-09-09 21:41:27 +0000 |
commit | 5e6d61bbaac7ffc9135c2132d6174bf7e078e912 (patch) | |
tree | 4236def9b018443bac66840d24a6dcb44c9455bb /gtk/src/audiohandler.c | |
parent | 984f3785bf4030322920ac77601b0dc88fbd8b45 (diff) |
LinGui: improve "auto" audio selection
picks the "best" audio (according to my personal criteria of what's best)
given the input codec and output formats.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2811 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/audiohandler.c')
-rw-r--r-- | gtk/src/audiohandler.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c index b57f42152..d35979951 100644 --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -52,7 +52,10 @@ ghb_adjust_audio_rate_combos(signal_user_data_t *ud) { gint br = ainfo.bitrate / 1000; // Set the values for bitrate and samplerate to the input rates - ghb_set_passthru_bitrate_opts (ud->builder, br); + if (br >= 8) + ghb_set_passthru_bitrate_opts (ud->builder, br); + else + br = 160; ghb_ui_update(ud, "AudioBitrate", ghb_int64_value(br)); ghb_ui_update(ud, "AudioSamplerate", ghb_int64_value(0)); ghb_ui_update(ud, "AudioMixdown", ghb_int64_value(0)); @@ -192,6 +195,7 @@ ghb_set_pref_audio(gint titleindex, signal_user_data_t *ud) titleindex, track, acodec_code, mix_code); ghb_ui_update(ud, "AudioMixdown", ghb_int64_value(mix_code)); } + ghb_adjust_audio_rate_combos(ud); ghb_ui_update(ud, "AudioTrackDRCSlider", drc); } } @@ -498,7 +502,6 @@ add_to_audio_list(signal_user_data_t *ud, GValue *settings) else s_drc = g_strdup_printf("%.1f", drc); - gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, // These are displayed in list |