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/audiohandler.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/audiohandler.c')
-rw-r--r-- | gtk/src/audiohandler.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c index 1bfdcf2c5..17d0a3414 100644 --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -244,7 +244,6 @@ audio_list_refresh_selected(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"); @@ -252,6 +251,10 @@ audio_list_refresh_selected(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 @@ -260,8 +263,8 @@ audio_list_refresh_selected(signal_user_data_t *ud) 2, br, 3, sr, 4, mix, - // These are used to set combo values when a list item is selected 5, drc, + // These are used to set combo values when a list item is selected 6, s_track, 7, s_codec, 8, s_br, @@ -445,7 +448,6 @@ add_to_audio_list(signal_user_data_t *ud, GValue *settings) br = ghb_settings_combo_option(settings, "AudioBitrate"); sr = ghb_settings_combo_option(settings, "AudioSamplerate"); mix = ghb_settings_combo_option(settings, "AudioMixdown"); - drc = ghb_settings_get_string(settings, "AudioTrackDRCSlider"); s_track = ghb_settings_get_string(settings, "AudioTrack"); s_codec = ghb_settings_get_string(settings, "AudioEncoder"); @@ -453,6 +455,10 @@ add_to_audio_list(signal_user_data_t *ud, GValue *settings) s_sr = ghb_settings_get_string(settings, "AudioSamplerate"); s_mix = ghb_settings_get_string(settings, "AudioMixdown"); s_drc = ghb_settings_get_double(settings, "AudioTrackDRCSlider"); + if (s_drc < 0.1) + drc = g_strdup("Off"); + else + drc = g_strdup_printf("%.1f", s_drc); gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, @@ -462,8 +468,8 @@ add_to_audio_list(signal_user_data_t *ud, GValue *settings) 2, br, 3, sr, 4, mix, - // These are used to set combo box values when a list item is selected 5, drc, + // These are used to set combo box values when a list item is selected 6, s_track, 7, s_codec, 8, s_br, |