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.
This commit is contained in:
Dudemanguy 2023-08-28 20:45:38 -05:00
parent 9b9475e218
commit a062f115a1
3 changed files with 2 additions and 12 deletions

View File

@ -50,6 +50,7 @@ Interface changes
- remove `auto` choice from `--sub-forced-only`
- remove `auto-forced-only` property
- rename `--sub-forced-only` to `--sub-forced-events-only`
- remove `sub-forced-only-cur` property (`--sub-forced-events-only` is a replacement)
--- mpv 0.36.0 ---
- add `--target-contrast`
- Target luminance value is now also applied when ICC profile is used.

View File

@ -2720,9 +2720,6 @@ Property list
``secondary-sub-end``
Same as ``sub-end``, but for the secondary subtitles.
``sub-forced-only-cur``
Read-only - whether the current subtitle track is being shown in forced-only mode.
``playlist-pos`` (RW)
Current position on playlist. The first entry is on position 0. Writing to
this property may start playback at the new position.

View File

@ -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"),
};