mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
Revert "options: add --sub-visibility=<primary-only|secondary-only>"
This reverts commit 04f0b0abe4.
It's not a good idea to unify the names only for visibility, while
keeping secondary-* for everything else.
This needs a bit more thought before we allow secondary sub to be
visible on its own.
This commit is contained in:
@@ -453,12 +453,7 @@ void sub_set_play_dir(struct dec_sub *sub, int dir)
|
||||
pthread_mutex_unlock(&sub->lock);
|
||||
}
|
||||
|
||||
bool sub_is_primary_visible(struct dec_sub *sub)
|
||||
{
|
||||
return sub->opts->sub_visibility == 1 || sub->opts->sub_visibility == 2;
|
||||
}
|
||||
|
||||
bool sub_is_secondary_visible(struct dec_sub *sub)
|
||||
{
|
||||
return sub->opts->sub_visibility == 1 || sub->opts->sub_visibility == 3;
|
||||
return !!sub->opts->sec_sub_visibility;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user