Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

player: refactor secondary subtitle options and properties #13091

Merged
merged 2 commits into from
Dec 16, 2023

Conversation

Dudemanguy
Copy link
Member

Follow up to some discussion we had in #13073.

Over the years, we've accumulated several secondary subtitle related
options and properties, but the implementation was not really consistent
and it wasn't clear what the right process for adding more should be. So
to make things nicer, let's refactor all of the subtitle options with
secondary variants (sub-delay, sub-pos, and sub-visibility) and split
them off to a new, separate struct. All of the underlying values are
stored in an array instead for simplicity. Additionally, the
implementation of some secondary-sub-* properties were slightly changed
so there would be less redundancy.
Missed in 3250f6e. Note that the
hardcoded ass alignment value is not used anymore as of that commit, but
we should ideally be moving towards secondary subs actually being
customizable via ASS anyways.
Copy link

Download the artifacts for this pull request:

Windows

@Dudemanguy Dudemanguy merged commit 1112de2 into mpv-player:master Dec 16, 2023
13 checks passed
@Dudemanguy Dudemanguy deleted the secondary-sub-refactor branch December 16, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant