summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-08-28 20:45:38 -0500
committerDudemanguy <random342@airmail.cc>2023-08-29 16:39:00 +0000
commita062f115a1027c34c46633e1ea9f0a0951380cdd (patch)
tree5efbfedf71a11743b3e785675f190dc9e6ddc2ee /player
parent9b9475e21809fbb4736b4290c2648900d9c49e2e (diff)
downloadmpv-a062f115a1027c34c46633e1ea9f0a0951380cdd.tar.bz2
mpv-a062f115a1027c34c46633e1ea9f0a0951380cdd.tar.xz
command: remove sub-forced-only-cur property
Since we no longer have the auto choice, this is always exactly equal to the value of the option (sub-forced-events-only). Remove the property and alias it.
Diffstat (limited to 'player')
-rw-r--r--player/command.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/player/command.c b/player/command.c
index 691f35c50e..200696b7af 100644
--- a/player/command.c
+++ b/player/command.c
@@ -3009,14 +3009,6 @@ static int mp_property_sub_end(void *ctx, struct m_property *prop,
return m_property_double_ro(action, arg, end);
}
-static int mp_property_sub_forced_only_cur(void *ctx, struct m_property *prop,
- int action, void *arg)
-{
- MPContext *mpctx = ctx;
- int ret = mpctx->opts->subs_rend->sub_forced_events_only;
- return m_property_bool_ro(action, arg, ret);
-}
-
static int mp_property_playlist_current_pos(void *ctx, struct m_property *prop,
int action, void *arg)
{
@@ -3987,7 +3979,6 @@ static const struct m_property mp_properties_base[] = {
.priv = (void *)&(const int){0}},
{"secondary-sub-end", mp_property_sub_end,
.priv = (void *)&(const int){1}},
- {"sub-forced-only-cur", mp_property_sub_forced_only_cur},
{"vf", mp_property_vf},
{"af", mp_property_af},
@@ -4047,6 +4038,7 @@ static const struct m_property mp_properties_base[] = {
M_PROPERTY_ALIAS("colormatrix-primaries", "video-params/primaries"),
M_PROPERTY_ALIAS("colormatrix-gamma", "video-params/gamma"),
+ M_PROPERTY_DEPRECATED_ALIAS("sub-forced-only-cur", "sub-forced-events-only"),
M_PROPERTY_DEPRECATED_ALIAS("drop-frame-count", "decoder-frame-drop-count"),
M_PROPERTY_DEPRECATED_ALIAS("vo-drop-frame-count", "frame-drop-count"),
};