diff options
author | wm4 <wm4@nowhere> | 2014-10-23 19:11:31 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-23 19:27:49 +0200 |
commit | a037f7b4647c07d9f33bc849fd6f0ae3e3422754 (patch) | |
tree | a486f8b664bd67f6a9ed49cb640a56bc2c6c02ff /options | |
parent | c9234d769df83b7280f68f9dc24445029f84041a (diff) | |
download | mpv-a037f7b4647c07d9f33bc849fd6f0ae3e3422754.tar.bz2 mpv-a037f7b4647c07d9f33bc849fd6f0ae3e3422754.tar.xz |
terminal: strictly don't read terminal input if stdout is not a terminal
Doing that doesn't make sense anyway: it's meant for interactive input,
and if the output of the player is not on the terminal, how will you
interact with it?
It was also quite in the way when trying to read verbose output with
e.g. less while the player was running, because the player would grab
half of all input meant for less (simply because stdin is still
connected to the terminal).
Remove the now redundant special-casing of pipe input.
Diffstat (limited to 'options')
-rw-r--r-- | options/parse_commandline.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/options/parse_commandline.c b/options/parse_commandline.c index 254dc3cba7..f82706a52a 100644 --- a/options/parse_commandline.c +++ b/options/parse_commandline.c @@ -257,10 +257,6 @@ int m_config_parse_mp_command_line(m_config_t *config, struct playlist *files, process_non_option(files, file0); } talloc_free(tmp); - - // Lock stdin if it will be used as input - if (bstrcmp0(file, "-") == 0) - m_config_set_option0(config, "input-terminal", "no"); } } |