From f57f13ceb031e5a11a4a2de226ee1f9b211ddb64 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 16 Nov 2019 15:28:18 +0100 Subject: options: deprecate --input-file I have no idea why this still exists, since we have --input-ipc-server. I think there was something about Windows, but the latter option is implemented even on Windows. --- DOCS/interface-changes.rst | 2 ++ DOCS/man/options.rst | 2 ++ options/options.c | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index 45b0429dcc..187f64bb50 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -34,6 +34,8 @@ Interface changes for software video conversion. These were switched to higher quality since mpv 0.30.0 (related to the previous changelog entry). This affects video outputs like vo_x11 and vo_drm, and screenshots, but not much else. + - deprecate --input-file (there are no plans to remove this short-term, + but it will probably eventually go away) --- mpv 0.30.0 --- - add `--d3d11-output-format` to enable explicit selection of a D3D11 swap chain format. diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index aaabed7696..3c52acec00 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -3415,6 +3415,8 @@ Input like any other binding). See `INPUT.CONF`_. ``--input-file=`` + Deprecated. Use ``--input-ipc-server``. + Read commands from the given file. Mostly useful with a FIFO. Since mpv 0.7.0 also understands JSON commands (see `JSON IPC`_), but you can't get replies or events. Use ``--input-ipc-server`` for something diff --git a/options/options.c b/options/options.c index d8d4c015d7..480186a908 100644 --- a/options/options.c +++ b/options/options.c @@ -697,7 +697,8 @@ const m_option_t mp_opts[] = { OPT_FLAG("input-terminal", consolecontrols, UPDATE_TERM), - OPT_STRING("input-file", input_file, M_OPT_FILE | UPDATE_INPUT), + OPT_STRING("input-file", input_file, M_OPT_FILE | UPDATE_INPUT, + .deprecation_message = "use --input-ipc-server"), OPT_STRING("input-ipc-server", ipc_path, M_OPT_FILE | UPDATE_INPUT), OPT_SUBSTRUCT("screenshot", screenshot_image_opts, screenshot_conf, 0), -- cgit v1.2.3