From ed7b1ded06240d840501d1e1fef06e06647695fb Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Fri, 10 Jun 2016 11:09:46 -0600 Subject: cli: fix initialization of SubtitleTrackSelectionBehavior We should only override the original presets value when --all-subtitles, --first-subtitle, or an explicit subtitle list is specified on the command line. --- test/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test.c b/test/test.c index 069eb6265..317cc41ab 100644 --- a/test/test.c +++ b/test/test.c @@ -3105,7 +3105,7 @@ static hb_dict_t * PreparePreset(const char *preset_name) { selection = subtitle_all == 1 ? "all" : "first"; } - else + else if (subtitle_track_count > 0) { selection = "none"; } -- cgit v1.2.3