diff options
Diffstat (limited to 'gtk/src/hb-backend.c')
-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; } |