]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix subtitle list initialization...
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 10 Nov 2015 21:24:20 +0000 (13:24 -0800)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 10 Nov 2015 21:24:20 +0000 (13:24 -0800)
When "Add L subtitle track if default audio is not L".
If the matching track was the first subtitle track in the source, it did
not get added.

gtk/src/subtitlehandler.c

index 960fdb0ff1cfbbaf8d1b06d0cd66d2e995fede91..f348ff4400dba5344cce7e09da62b07640bf7daa 100644 (file)
@@ -513,7 +513,7 @@ ghb_set_pref_subtitle_settings(signal_user_data_t *ud, const hb_title_t *title,
         // is foreign language.
         foreign_audio_search = FALSE;
         track = ghb_find_subtitle_track(title, pref_lang, 0);
-        if (track > 0)
+        if (track >= 0)
         {
             used[track] = TRUE;
             subtitle_add_track(ud, settings, title, track, mux->format,