summaryrefslogtreecommitdiffstats
path: root/gtk/src/queuehandler.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-10-09 20:02:20 +0000
committerjstebbins <[email protected]>2010-10-09 20:02:20 +0000
commit566504c46cbb550ec3e9c4714ef9026b3d10beb2 (patch)
treec1066fa1aefb0abef4481f89f9ff6e52a7d47a9d /gtk/src/queuehandler.c
parentfca242d2876319d11bce48304e0dc18eefdeb65a (diff)
LinGui: fix some audio list display problems
and try to clean up the code a bit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3589 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/queuehandler.c')
-rw-r--r--gtk/src/queuehandler.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c
index 2232a219d..1cc0161eb 100644
--- a/gtk/src/queuehandler.c
+++ b/gtk/src/queuehandler.c
@@ -409,7 +409,7 @@ add_to_queue_list(signal_user_data_t *ud, GValue *settings, GtkTreeIter *piter)
asettings = ghb_array_get_nth(audio_list, ii);
- acodec = ghb_settings_combo_option(asettings, "AudioEncoder");
+ acodec = ghb_settings_combo_option(asettings, "AudioEncoderActual");
bitrate = ghb_settings_get_string(asettings, "AudioBitrate");
sr = ghb_settings_get_double(asettings, "AudioSamplerate");
samplerate = ghb_settings_get_string(asettings, "AudioSamplerate");
@@ -526,7 +526,7 @@ audio_list_refresh(signal_user_data_t *ud)
{
const gchar *track, *codec, *br, *sr, *mix;
gchar *s_drc;
- gint itrack, icodec;
+ gint itrack;
gdouble drc;
GValue *asettings;
@@ -537,8 +537,7 @@ audio_list_refresh(signal_user_data_t *ud)
track = ghb_settings_combo_option(asettings, "AudioTrack");
itrack = ghb_settings_combo_int(asettings, "AudioTrack");
- codec = ghb_settings_combo_option(asettings, "AudioEncoder");
- icodec = ghb_settings_combo_int(asettings, "AudioEncoder");
+ codec = ghb_settings_combo_option(asettings, "AudioEncoderActual");
br = ghb_settings_combo_option(asettings, "AudioBitrate");
sr = ghb_settings_combo_option(asettings, "AudioSamplerate");
mix = ghb_settings_combo_option(asettings, "AudioMixdown");
@@ -549,9 +548,6 @@ audio_list_refresh(signal_user_data_t *ud)
else
s_drc = g_strdup_printf("%.1f", drc);
- if (icodec == HB_ACODEC_ANY)
- codec = ghb_select_audio_codec_str(ud->settings, icodec, itrack);
-
gtk_list_store_set(GTK_LIST_STORE(store), &iter,
// These are displayed in list
0, track,