diff options
author | Dudemanguy <random342@airmail.cc> | 2024-01-19 17:47:46 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-02-24 05:26:37 +0000 |
commit | 81506828141481c92652987264def1f3f9a262fc (patch) | |
tree | 8c23131c3aa0fb7c63965c6e1af2a7f10193c923 /player/core.h | |
parent | 7454edc556deae97cbef0320009c4c38d4237f9f (diff) | |
download | mpv-81506828141481c92652987264def1f3f9a262fc.tar.bz2 mpv-81506828141481c92652987264def1f3f9a262fc.tar.xz |
player/loadfile: rewrite sub autoselection logic
There's too many dumb options related to subtitles which have annoying
edge cases. Try to rewrite this completely so it hopefully behaves
normally in every expected scenario. A key goal here is be smarter while
looping through the tracks and avoid selecting the subtitle if it
doesn't meet user's passed options as opposed to clearing the pick after
the fact. Fixes #13280 and fixes #13263.
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/player/core.h b/player/core.h index 9d9c4e8307..d995a88366 100644 --- a/player/core.h +++ b/player/core.h @@ -120,6 +120,7 @@ struct track { char *title; bool default_track, forced_track, dependent_track; bool visual_impaired_track, hearing_impaired_track; + bool forced_select; // if the track was selected because it is forced bool image; bool attached_picture; char *lang; |