summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-27 18:08:02 +0200
committerwm4 <wm4@nowhere>2015-05-27 18:08:02 +0200
commitdc2c7371f17df42fb75d541b6adb9a11a33c5874 (patch)
tree042fda48b226a5c350d4323cd64f92f53de93efd /player/command.c
parente8a1d35e9c439ba8a86507e02292cc24fef0174a (diff)
downloadmpv-dc2c7371f17df42fb75d541b6adb9a11a33c5874.tar.bz2
mpv-dc2c7371f17df42fb75d541b6adb9a11a33c5874.tar.xz
command: remove deprecated get_property command
This command has been deprecated in the 0.8.x and 0.9.x releases - get rid of it. Its only point ever was MPlayer compatibility, which broke years ago anyway.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/player/command.c b/player/command.c
index e36c9f8fe2..b95343712c 100644
--- a/player/command.c
+++ b/player/command.c
@@ -3797,21 +3797,6 @@ static void show_property_osd(MPContext *mpctx, const char *name, int osd_mode)
}
}
-static const char *property_error_string(int error_value)
-{
- switch (error_value) {
- case M_PROPERTY_ERROR:
- return "ERROR";
- case M_PROPERTY_UNAVAILABLE:
- return "PROPERTY_UNAVAILABLE";
- case M_PROPERTY_NOT_IMPLEMENTED:
- return "NOT_IMPLEMENTED";
- case M_PROPERTY_UNKNOWN:
- return "PROPERTY_UNKNOWN";
- }
- return "UNKNOWN";
-}
-
static bool reinit_filters(MPContext *mpctx, enum stream_type mediatype)
{
switch (mediatype) {
@@ -4328,25 +4313,6 @@ int run_command(struct MPContext *mpctx, struct mp_cmd *cmd, struct mpv_node *re
break;
}
- case MP_CMD_GET_PROPERTY: {
- char *tmp;
- int r = mp_property_do(cmd->args[0].v.s, M_PROPERTY_GET_STRING,
- &tmp, mpctx);
- if (r <= 0) {
- MP_WARN(mpctx, "Failed to get value of property '%s'.\n",
- cmd->args[0].v.s);
- MP_INFO(mpctx, "ANS_ERROR=%s\n", property_error_string(r));
- return -1;
- }
- MP_INFO(mpctx, "ANS_%s=%s\n", cmd->args[0].v.s, tmp);
- talloc_free(tmp);
- MP_WARN(mpctx, "The get_property command is deprecated and "
- "will be removed in the next release.\n"
- "Use libmpv or the JSON IPC. "
- "(Or print_text, if you must.)");
- break;
- }
-
case MP_CMD_FRAME_STEP:
if (!mpctx->playback_initialized)
return -1;