summaryrefslogtreecommitdiffstats
path: root/sub/dec_sub.c
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2022-01-19 21:56:28 +0200
committerAvi Halachmi (:avih) <avihpit@yahoo.com>2022-01-19 21:56:28 +0200
commit9cddd73f67f11dba2f2921124e2c39c77af01651 (patch)
tree3148a8c3e43b33025c0c968d360e672a3794c409 /sub/dec_sub.c
parent04f0b0abe48d664aaa1400d1dddb02b434999b85 (diff)
downloadmpv-9cddd73f67f11dba2f2921124e2c39c77af01651.tar.bz2
mpv-9cddd73f67f11dba2f2921124e2c39c77af01651.tar.xz
Revert "options: add --sub-visibility=<primary-only|secondary-only>"
This reverts commit 04f0b0abe48d664aaa1400d1dddb02b434999b85. 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.
Diffstat (limited to 'sub/dec_sub.c')
-rw-r--r--sub/dec_sub.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sub/dec_sub.c b/sub/dec_sub.c
index 6525c41653..a283a5151d 100644
--- a/sub/dec_sub.c
+++ b/sub/dec_sub.c
@@ -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;
}