summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-09-30 15:51:34 +0000
committerjstebbins <[email protected]>2009-09-30 15:51:34 +0000
commit8e35653c79dbe97b5b512796e0d9abc9102762b2 (patch)
tree95efe6a70b781f0eba7fa7c52eaa883fd0d0eb64
parent5a335ad33b7894306cf73588aaf71547ab088fd2 (diff)
LinGui: fix audio codec description
When adding to the queue, the audio codec description could be incorrect git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2856 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--gtk/src/audiohandler.c2
-rw-r--r--gtk/src/queuehandler.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c
index 017a8b8d3..17699915f 100644
--- a/gtk/src/audiohandler.c
+++ b/gtk/src/audiohandler.c
@@ -290,9 +290,7 @@ ghb_audio_list_refresh_selected(signal_user_data_t *ud)
s_drc = g_strdup_printf("%.1f", drc);
if (icodec == HB_ACODEC_MASK)
- {
codec = ghb_select_audio_codec_str(ud, itrack);
- }
gtk_list_store_set(GTK_LIST_STORE(store), &iter,
// These are displayed in list
diff --git a/gtk/src/queuehandler.c b/gtk/src/queuehandler.c
index 8bd60bb33..45268ed6f 100644
--- a/gtk/src/queuehandler.c
+++ b/gtk/src/queuehandler.c
@@ -511,6 +511,7 @@ audio_list_refresh(signal_user_data_t *ud)
{
const gchar *track, *codec, *br, *sr, *mix;
gchar *drc, *s_track, *s_codec, *s_br, *s_sr, *s_mix;
+ gint itrack, icodec;
gdouble s_drc;
GValue *asettings;
@@ -520,7 +521,9 @@ audio_list_refresh(signal_user_data_t *ud)
asettings = ghb_array_get_nth(audio_list, row);
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");
br = ghb_settings_combo_option(asettings, "AudioBitrate");
sr = ghb_settings_combo_option(asettings, "AudioSamplerate");
mix = ghb_settings_combo_option(asettings, "AudioMixdown");
@@ -536,6 +539,9 @@ audio_list_refresh(signal_user_data_t *ud)
else
drc = g_strdup_printf("%.1f", s_drc);
+ if (icodec == HB_ACODEC_MASK)
+ codec = ghb_select_audio_codec_str(ud, itrack);
+
gtk_list_store_set(GTK_LIST_STORE(store), &iter,
// These are displayed in list
0, track,