diff options
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 27 |
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", |