From c9474dc9ed6172a5f17f66f4b7d367da6b077909 Mon Sep 17 00:00:00 2001 From: rcombs Date: Mon, 22 Jun 2020 15:08:42 -0500 Subject: player: add --subs-with-matching-audio option This allows users to control whether full dialogue subtitles are displayed with an audio track already in their preferred subtitle language. Additionally, this improves handling for the forced flag, automatically selecting between forced and unforced subtitle streams based on the user's settings and the selected audio. --- sub/sd_lavc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sub/sd_lavc.c') diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c index 81906ceb23..77877fdbd1 100644 --- a/sub/sd_lavc.c +++ b/sub/sd_lavc.c @@ -191,7 +191,7 @@ static void read_sub_bitmaps(struct sd *sd, struct sub *sub) MP_ERR(sd, "unsupported subtitle type from libavcodec\n"); continue; } - if (!(r->flags & AV_SUBTITLE_FLAG_FORCED) && opts->forced_subs_only) + if (!(r->flags & AV_SUBTITLE_FLAG_FORCED) && opts->forced_subs_only_current) continue; if (r->w <= 0 || r->h <= 0) continue; -- cgit v1.2.3