diff options
author | jstebbins <[email protected]> | 2009-02-06 15:37:50 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-02-06 15:37:50 +0000 |
commit | 2b3a2836ba601220380021a02a08031fa64a80a8 (patch) | |
tree | f4b89f5a8f376d7deb9400fe189fe6f3e80cc28a /gtk/src/queuehandler.c | |
parent | a43a189428cc45822110acfb5b7873d82e278f70 (diff) |
LinGui: add support for 0 DRC
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2123 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/queuehandler.c')
-rw-r--r-- | gtk/src/queuehandler.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c index 05cae3b63..d928ed7c7 100644 --- a/gtk/src/queuehandler.c +++ b/gtk/src/queuehandler.c @@ -419,7 +419,6 @@ audio_list_refresh(signal_user_data_t *ud) br = ghb_settings_combo_option(asettings, "AudioBitrate"); sr = ghb_settings_combo_option(asettings, "AudioSamplerate"); mix = ghb_settings_combo_option(asettings, "AudioMixdown"); - drc = ghb_settings_get_string(asettings, "AudioTrackDRCSlider"); s_track = ghb_settings_get_string(asettings, "AudioTrack"); s_codec = ghb_settings_get_string(asettings, "AudioEncoder"); @@ -427,6 +426,10 @@ audio_list_refresh(signal_user_data_t *ud) s_sr = ghb_settings_get_string(asettings, "AudioSamplerate"); s_mix = ghb_settings_get_string(asettings, "AudioMixdown"); s_drc = ghb_settings_get_double(asettings, "AudioTrackDRCSlider"); + if (s_drc < 0.1) + drc = g_strdup("Off"); + else + drc = g_strdup_printf("%.1f", s_drc); gtk_list_store_set(GTK_LIST_STORE(store), &iter, // These are displayed in list @@ -435,8 +438,8 @@ audio_list_refresh(signal_user_data_t *ud) 2, br, 3, sr, 4, mix, - // These are used to set combo values when an item is selected 5, drc, + // These are used to set combo values when an item is selected 6, s_track, 7, s_codec, 8, s_br, |