From bf5b1e9a0517b357b93ffaef7b6d96ad8b9917b0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Aug 2014 22:57:56 +0200 Subject: Remove the last remains of slave mode Almost nothing was left of it. The only thing this commit actually removes is support for reading input commands from stdin. But you can emulate this via: --input-file=/dev/stdin --input-terminal=no However, this won't work on Windows. Just use a named pipe. --- player/main.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'player') diff --git a/player/main.c b/player/main.c index aebfa06fb1..13ecff9f9e 100644 --- a/player/main.c +++ b/player/main.c @@ -402,15 +402,8 @@ int mp_initialize(struct MPContext *mpctx) } #endif - if (opts->use_terminal) { - if (mpctx->opts->slave_mode) - terminal_setup_stdin_cmd_input(mpctx->input); - else if (mpctx->opts->consolecontrols) - terminal_setup_getch(mpctx->input); - - if (opts->consolecontrols) - getch2_enable(); - } + if (opts->use_terminal && opts->consolecontrols) + terminal_setup_getch(mpctx->input); #if HAVE_LIBASS mpctx->ass_log = mp_log_new(mpctx, mpctx->global->log, "!libass"); -- cgit v1.2.3