summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-09-19 20:10:10 -0500
committerDudemanguy <random342@airmail.cc>2023-09-21 16:06:29 +0000
commit29b481da54f3779b70381ae3ff79bea0b39d110f (patch)
treedcefbb8a174ce8bdcdf987ae64a8b2cf15fae86c /player
parent969c19c9cb82a988366e611ba4c99fe85e7712f1 (diff)
downloadmpv-29b481da54f3779b70381ae3ff79bea0b39d110f.tar.bz2
mpv-29b481da54f3779b70381ae3ff79bea0b39d110f.tar.xz
command: remove some old deprecated properities
drop-frame-count and vo-drop-frame-count are ancient and have no reason to exist anymore. The other change is that support for writing to display-fps has been removed, and the property is strictly read-only now. 3a2dc8b22e9f947c9cd3a91445b0731b8df1d798 is what deprecated it with a warning to users, so we can remove it without much trouble.
Diffstat (limited to 'player')
-rw-r--r--player/command.c27
1 files changed, 7 insertions, 20 deletions
diff --git a/player/command.c b/player/command.c
index 15177ca67c..0511b1cef5 100644
--- a/player/command.c
+++ b/player/command.c
@@ -2472,17 +2472,6 @@ static int mp_property_display_fps(void *ctx, struct m_property *prop,
MPContext *mpctx = ctx;
double fps = mpctx->video_out ? vo_get_display_fps(mpctx->video_out) : 0;
switch (action) {
- case M_PROPERTY_SET: {
- MP_WARN(mpctx, "Setting the display-fps property is deprecated; set "
- "the override-display-fps property instead.\n");
- struct mpv_node val = {
- .format = MPV_FORMAT_DOUBLE,
- .u.double_ = *(double *)arg,
- };
- return m_config_set_option_node(mpctx->mconfig,
- bstr0("override-display-fps"), &val, 0)
- >= 0 ? M_PROPERTY_OK : M_PROPERTY_ERROR;
- }
case M_PROPERTY_GET:
if (fps <= 0)
return M_PROPERTY_UNAVAILABLE;
@@ -4031,8 +4020,6 @@ static const struct m_property mp_properties_base[] = {
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"),
};
// Each entry describes which properties an event (possibly) changes.
@@ -4047,13 +4034,13 @@ static const char *const *const mp_event_property_change[] = {
E(MPV_EVENT_IDLE, "*"),
E(MPV_EVENT_TICK, "time-pos", "audio-pts", "stream-pos", "avsync",
"percent-pos", "time-remaining", "playtime-remaining", "playback-time",
- "estimated-vf-fps", "drop-frame-count", "vo-drop-frame-count",
- "total-avsync-change", "audio-speed-correction", "video-speed-correction",
- "vo-delayed-frame-count", "mistimed-frame-count", "vsync-ratio",
- "estimated-display-fps", "vsync-jitter", "sub-text", "secondary-sub-text",
- "audio-bitrate", "video-bitrate", "sub-bitrate", "decoder-frame-drop-count",
- "frame-drop-count", "video-frame-info", "vf-metadata", "af-metadata",
- "sub-start", "sub-end", "secondary-sub-start", "secondary-sub-end"),
+ "estimated-vf-fps", "total-avsync-change", "audio-speed-correction",
+ "video-speed-correction", "vo-delayed-frame-count", "mistimed-frame-count",
+ "vsync-ratio", "estimated-display-fps", "vsync-jitter", "sub-text",
+ "secondary-sub-text", "audio-bitrate", "video-bitrate", "sub-bitrate",
+ "decoder-frame-drop-count", "frame-drop-count", "video-frame-info",
+ "vf-metadata", "af-metadata", "sub-start", "sub-end", "secondary-sub-start",
+ "secondary-sub-end"),
E(MP_EVENT_DURATION_UPDATE, "duration"),
E(MPV_EVENT_VIDEO_RECONFIG, "video-out-params", "video-params",
"video-format", "video-codec", "video-bitrate", "dwidth", "dheight",