diff options
author | Dudemanguy <random342@airmail.cc> | 2023-08-28 20:15:49 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-08-29 16:39:00 +0000 |
commit | 9b9475e21809fbb4736b4290c2648900d9c49e2e (patch) | |
tree | bd9e81023fdaae695e3b56db6e2a9112f5ed95ff /sub | |
parent | 4009e99b9c8a875e244c908b1f5721bf255966ea (diff) | |
download | mpv-9b9475e21809fbb4736b4290c2648900d9c49e2e.tar.bz2 mpv-9b9475e21809fbb4736b4290c2648900d9c49e2e.tar.xz |
player: rename --sub-forced-only to --sub-forced-events-only
The old name is pretty bad and users mistakenly think it has something
to do with selecting forced subtitles (that would be
--subs-fallback-forced). Instead of giving it such a generic name, make
it clearer that this has to do specifically with forced sub events
which is only relevant for a small minority of subtitles.
Diffstat (limited to 'sub')
-rw-r--r-- | sub/sd_ass.c | 2 | ||||
-rw-r--r-- | sub/sd_lavc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sub/sd_ass.c b/sub/sd_ass.c index 1ce77384c8..516553f20b 100644 --- a/sub/sd_ass.c +++ b/sub/sd_ass.c @@ -577,7 +577,7 @@ static struct sub_bitmaps *get_bitmaps(struct sd *sd, struct mp_osd_res dim, // Currently no supported text sub formats support a distinction between forced // and unforced lines, so we just assume everything's unforced and discard everything. // If we ever see a format that makes this distinction, we can add support here. - if (opts->forced_subs_only) + if (opts->sub_forced_events_only) goto done; double scale = dim.display_par; diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c index 5586a4c287..7d0a7ffc2e 100644 --- a/sub/sd_lavc.c +++ b/sub/sd_lavc.c @@ -195,7 +195,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->sub_forced_events_only) continue; if (r->w <= 0 || r->h <= 0) continue; |