summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-06-10 11:09:46 -0600
committerJohn Stebbins <[email protected]>2016-06-10 11:15:09 -0600
commited7b1ded06240d840501d1e1fef06e06647695fb (patch)
tree8cccfb5956ae5dba684f85230cf23cab4bda25c3
parent662b000b75137896d5139017f53c93746474b5eb (diff)
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.
-rw-r--r--test/test.c2
1 files changed, 1 insertions, 1 deletions
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";
}