diff options
author | jstebbins <[email protected]> | 2010-10-09 22:11:13 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-10-09 22:11:13 +0000 |
commit | 3a4ef9027b0ae6a35cb72d06f701b8232b08957e (patch) | |
tree | daa3f200bbba0d9b9ba591bb0469650c99f08261 /gtk/src | |
parent | a0eeb0867eba3c06d6a4bec8d468cc16028fb9dd (diff) |
LinGui: fix bad audio codec setting in job
was using a pointer before it was set.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3593 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/hb-backend.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index a9a962c45..7b1d94773 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -4676,11 +4676,13 @@ add_job(hb_handle_t *h, GValue *js, gint unique_id, gint titleindex) asettings = ghb_array_get_nth(audio_list, ii); audio.in.track = ghb_settings_get_int(asettings, "AudioTrack"); audio.out.track = tcount; - acodec = ghb_settings_combo_int(asettings, "AudioEncoder"); - audio.out.codec = ghb_select_audio_codec(js, aconfig, acodec); aconfig = (hb_audio_config_t *) hb_list_audio_config_item( title->list_audio, audio.in.track ); + + acodec = ghb_settings_combo_int(asettings, "AudioEncoder"); + audio.out.codec = ghb_select_audio_codec(js, aconfig, acodec); + audio.out.dynamic_range_compression = ghb_settings_get_double(asettings, "AudioTrackDRCSlider"); if (audio.out.dynamic_range_compression < 1.0) |