summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-11-05 18:49:36 +0000
committerjstebbins <[email protected]>2010-11-05 18:49:36 +0000
commit8f8ef175e85add6408063a2a36a0531def2714de (patch)
treed554a0054b0f5883558a3106851b42e7da194bed
parent84ef970ab6351a6646646cd98848ed3f2972ba66 (diff)
LinGui: fix auto audio track selection problem
When passthru is requested, and the first audio track of the source isn't passthru compatible, it picked the first track instead of moving on to a compatible track. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3647 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--gtk/src/hb-backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index d93086593..fc35adf20 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -2245,7 +2245,7 @@ ghb_find_audio_track(
{
audio = (hb_audio_config_t*)hb_list_audio_config_item(
title->list_audio, ii );
- passthru_acodec = acodec & audio->in.codec;
+ passthru_acodec = HB_ACODEC_PASS_MASK & acodec & audio->in.codec;
// Is the source track use a passthru capable codec?
if (passthru_acodec == 0)
continue;
@@ -2326,7 +2326,7 @@ ghb_find_audio_track(
{
audio = (hb_audio_config_t*)hb_list_audio_config_item(
title->list_audio, ii );
- passthru_acodec = HB_ACODEC_PASS_MASK & audio->in.codec;
+ passthru_acodec = HB_ACODEC_PASS_MASK & acodec & audio->in.codec;
// Is the source track use a passthru capable codec?
if (passthru_acodec == 0)
continue;