From: John Stebbins Date: Tue, 10 Nov 2015 21:24:20 +0000 (-0800) Subject: LinGui: fix subtitle list initialization... X-Git-Tag: 0.10.3~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e81167c1d57d7c52a3281e2f31463f1b3d1c8637;p=handbrake LinGui: fix subtitle list initialization... 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. --- diff --git a/gtk/src/subtitlehandler.c b/gtk/src/subtitlehandler.c index 960fdb0ff..f348ff440 100644 --- a/gtk/src/subtitlehandler.c +++ b/gtk/src/subtitlehandler.c @@ -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,