diff options
author | jstebbins <[email protected]> | 2009-01-24 19:26:05 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-01-24 19:26:05 +0000 |
commit | 5c379b6636abf8626e0bf2c323a5d77fd42f7fe5 (patch) | |
tree | 4e95f28b91d2b09c4de89f97fe7d050e444f7d26 /gtk/src/audiohandler.c | |
parent | e98a23579ed5e4ca68d9c82af3ac50dfd833e86e (diff) |
LinGui: fix how an audio is chosen after a source is scanned or the preset
selection changes. It wasn't honoring the preferred language or matching
the codec when passthru is selected.
Also checking in the ui changes needed for dts pasthru. The option is
disabled until we get libhb support.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2094 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/audiohandler.c')
-rw-r--r-- | gtk/src/audiohandler.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk/src/audiohandler.c b/gtk/src/audiohandler.c index 3c369566b..7967870de 100644 --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -127,7 +127,8 @@ ghb_set_pref_audio(gint titleindex, signal_user_data_t *ud) else index = *(gint*)iptr; - track = ghb_find_audio_track(titleindex, source_lang, index); + track = ghb_find_audio_track(titleindex, source_lang, + acodec_code, index); // Check to see if: // 1. pref codec is ac3 // 2. source codec is not ac3 @@ -135,7 +136,7 @@ ghb_set_pref_audio(gint titleindex, signal_user_data_t *ud) if (ghb_get_audio_info (&ainfo, titleindex, track) && ghb_audio_is_passthru (acodec_code)) { - if (!ghb_audio_is_passthru(ainfo.codec)) + if (ainfo.codec != acodec_code) { acodec_code = ghb_get_default_acodec(); // If there's more audio to process, or we've already @@ -511,15 +512,11 @@ audio_list_selection_changed_cb(GtkTreeSelection *selection, signal_user_data_t ghb_ui_update(ud, "AudioTrackDRCSlider", ghb_double_value(drc)); widget = GHB_WIDGET (ud->builder, "audio_remove"); gtk_widget_set_sensitive(widget, TRUE); - //widget = GHB_WIDGET (ud->builder, "audio_update"); - //gtk_widget_set_sensitive(widget, TRUE); } else { widget = GHB_WIDGET (ud->builder, "audio_remove"); gtk_widget_set_sensitive(widget, FALSE); - //widget = GHB_WIDGET (ud->builder, "audio_update"); - //gtk_widget_set_sensitive(widget, FALSE); } } |