summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-24 20:34:04 +0200
committerAlessandro Ghedini <alessandro@ghedini.me>2014-08-25 11:23:30 +0200
commit226735331cf53bc8293458f96e8f004ad530942e (patch)
tree637f2f9315533464a258f269088a36ac71bed9f3 /player
parent5523370ab9dec95c73076d20ff6f5a9b800d60f3 (diff)
downloadmpv-226735331cf53bc8293458f96e8f004ad530942e.tar.bz2
mpv-226735331cf53bc8293458f96e8f004ad530942e.tar.xz
options: compatibility hack for --slave-broken
Seems some programs were still relying on it. Whatever, it's not hard to support. CC: @mpv-player/stable
Diffstat (limited to 'player')
-rw-r--r--player/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/player/main.c b/player/main.c
index 9de780282f..a835dcbd7e 100644
--- a/player/main.c
+++ b/player/main.c
@@ -375,6 +375,12 @@ int mp_initialize(struct MPContext *mpctx)
mp_msg_update_msglevels(mpctx->global);
}
+ if (opts->slave_mode) {
+ MP_WARN(mpctx, "--slave-broken is deprecated (see manpage).\n");
+ opts->consolecontrols = 0;
+ m_config_set_option0(mpctx->mconfig, "input-file", "/dev/stdin");
+ }
+
mpctx->input = mp_input_init(mpctx->global);
mpctx->global->stream_interrupt_cb = check_stream_interrupt;
mpctx->global->stream_interrupt_cb_ctx = mpctx;