diff options
author | jstebbins <[email protected]> | 2008-10-19 18:43:08 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-10-19 18:43:08 +0000 |
commit | 791df0ecad16f41ad3f7acfbfeac97ecb9bf5949 (patch) | |
tree | ea45cb604e4bfc55947131adf7af19357379d0f1 /gtk/src | |
parent | f4cea96e9c8c28e26becdd345885f61a9d8df766 (diff) |
LinGui: fix initial audio selection problem
if no source audios matched the preset's language criteria, then no
audio was being selected.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1849 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/hb-backend.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 98c27dc20..e45ce65c0 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -1612,6 +1612,9 @@ ghb_find_audio_track(gint titleindex, const gchar *lang, gint index) match++; } } + if (match) return track; + if (index < count) + track = index; return track; } |