From: jstebbins Date: Sat, 15 Oct 2011 16:15:19 +0000 (+0000) Subject: LinGui: fix lame bitrate maxing out at 160 X-Git-Tag: 0.9.6~178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3cbf2a342b7093d0b0b1720d3b3c933c3a4fa69;p=handbrake LinGui: fix lame bitrate maxing out at 160 Must set the samplerate before trying to validate maximum bitrate. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4290 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index ea817b7ff..03fb954a5 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -4915,6 +4915,11 @@ add_job(hb_handle_t *h, GValue *js, gint unique_id, gint titleindex) // Make sure the mixdown is valid and pick a new one if not. audio.out.mixdown = ghb_get_best_mix(aconfig, audio.out.codec, audio.out.mixdown); + gint srate = ghb_settings_combo_int(asettings, "AudioSamplerate"); + if (srate == 0) // 0 is same as source + audio.out.samplerate = aconfig->in.samplerate; + else + audio.out.samplerate = srate; double quality = ghb_settings_get_double(asettings, "AudioTrackQuality"); if (ghb_settings_get_boolean(asettings, "AudioTrackQualityEnable") && quality >= 0) @@ -4932,11 +4937,6 @@ add_job(hb_handle_t *h, GValue *js, gint unique_id, gint titleindex) audio.out.codec, audio.out.bitrate, audio.out.samplerate, audio.out.mixdown); } - gint srate = ghb_settings_combo_int(asettings, "AudioSamplerate"); - if (srate == 0) // 0 is same as source - audio.out.samplerate = aconfig->in.samplerate; - else - audio.out.samplerate = srate; } // Add it to the jobs audio list