summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-24 20:34:04 +0200
committerwm4 <wm4@nowhere>2014-08-25 00:48:55 +0200
commit12509fabc7363ee18373438326fb6609d1710e3b (patch)
treeb6918c01903c09cc0b557a2b9eaa75fc71f52149 /player
parent20d88a6dea656b1ee4bc18320f49800c6a435f59 (diff)
downloadmpv-12509fabc7363ee18373438326fb6609d1710e3b.tar.bz2
mpv-12509fabc7363ee18373438326fb6609d1710e3b.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 097d180dc1..97ccb0e639 100644
--- a/player/main.c
+++ b/player/main.c
@@ -376,6 +376,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;