diff options
author | jstebbins <[email protected]> | 2008-09-17 15:46:10 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-17 15:46:10 +0000 |
commit | 148f47ad1531f447cf44d931944fb467137b493c (patch) | |
tree | 0c90856732885a287bce1ecf3702c46decd8585d /gtk/src/callbacks.c | |
parent | 0bf6104fb240884cdcfbc74f18edfef8f1d0ece4 (diff) |
LinGui: prevent entering bitrates above 160 for faac
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1710 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 1b887bafc..3a9445681 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -977,7 +977,7 @@ 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_rate_opts (ud->builder, br); + ghb_set_passthru_bitrate_opts (ud->builder, br); ghb_ui_update(ud, "audio_bitrate", ghb_int64_value(br)); ghb_ui_update(ud, "audio_rate", ghb_int64_value(0)); ghb_ui_update(ud, "audio_mix", ghb_int64_value(0)); @@ -988,9 +988,19 @@ adjust_audio_rate_combos(signal_user_data_t *ud) ghb_ui_update(ud, "audio_mix", ghb_int64_value(0)); } } + else if (acodec == HB_ACODEC_FAAC) + { + gint br; + + widget = GHB_WIDGET(ud->builder, "audio_bitrate"); + br = ghb_widget_int(widget); + if (br > 160) + ghb_ui_update(ud, "audio_bitrate", ghb_int64_value(160)); + ghb_set_default_bitrate_opts (ud->builder, 160); + } else { - ghb_set_default_rate_opts (ud->builder); + ghb_set_default_bitrate_opts (ud->builder, -1); } } |