diff options
author | jstebbins <[email protected]> | 2009-09-30 15:51:34 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-09-30 15:51:34 +0000 |
commit | 8e35653c79dbe97b5b512796e0d9abc9102762b2 (patch) | |
tree | 95efe6a70b781f0eba7fa7c52eaa883fd0d0eb64 /gtk/src/queuehandler.c | |
parent | 5a335ad33b7894306cf73588aaf71547ab088fd2 (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
Diffstat (limited to 'gtk/src/queuehandler.c')
-rw-r--r-- | gtk/src/queuehandler.c | 6 |
1 files changed, 6 insertions, 0 deletions
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, |