# HG changeset patch # User diego # Date 1089797224 0 # Node ID fba780800efe6a8d41aa2d20cc3a5a3f07820e3f # Parent 3c99b7a8c8402bfb9ccf312512b049ab33eb9891 -use-stdin renamed to -noconsolecontrols. diff -r 3c99b7a8c840 -r fba780800efe DOCS/man/en/mplayer.1 --- a/DOCS/man/en/mplayer.1 Wed Jul 14 09:05:47 2004 +0000 +++ b/DOCS/man/en/mplayer.1 Wed Jul 14 09:27:04 2004 +0000 @@ -523,6 +523,15 @@ .B \-menu-root (OSD menu only) Specify the main menu. .TP +.B \-noconsolecontrols +Prevent MPlayer from reading key events from standard input. +Useful when reading data from standard input. +This is automatically enabled when \- is found on the command line. +There are situations where you have to set it manually, e.g. +if you open /dev/stdin (or the equivalent on your system), use stdin +in a playlist or intend to read from stdin later on via the loadfile or +loadlist slave commands. +.TP .B \-nojoystick Turns off joystick support. .TP @@ -586,15 +595,6 @@ .B \-sstep Display one frame every seconds. Useful for slideshows. -.TP -.B \-use-stdin -Prevent MPlayer from reading key events from standard input. -Useful when reading data from standard input. -This is automatically enabled when \- is found on the command line. -There are situations where you have to set it manually, e.g. -if you open /dev/stdin (or the equivalent on your system), use stdin -in a playlist or intend to read from stdin later on via the loadfile or -loadlist slave commands. . . .SH "DEMUXER/STREAM OPTIONS" diff -r 3c99b7a8c840 -r fba780800efe cfg-mplayer.h --- a/cfg-mplayer.h Wed Jul 14 09:05:47 2004 +0000 +++ b/cfg-mplayer.h Wed Jul 14 09:27:04 2004 +0000 @@ -4,7 +4,7 @@ #include "cfg-common.h" -extern int use_stdin; +extern int noconsolecontrols; #if defined(HAVE_FBDEV)||defined(HAVE_VESA) extern char *monitor_hfreq_str; @@ -417,7 +417,9 @@ #endif {"slave", &slave_mode, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 1, NULL}, - {"use-stdin", &use_stdin, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, + {"use-stdin", "-use-stdin has been renamed to -noconsolecontrols, use that instead.", CONF_TYPE_PRINT, 0, 0, 0, NULL}, + {"noconsolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, + {"consolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 0, NULL}, #define MAIN_CONF #include "cfg-common.h" diff -r 3c99b7a8c840 -r fba780800efe mplayer.c --- a/mplayer.c Wed Jul 14 09:05:47 2004 +0000 +++ b/mplayer.c Wed Jul 14 09:27:04 2004 +0000 @@ -184,7 +184,7 @@ // Common FIFO functions, and keyboard/event FIFO code #include "fifo.c" -int use_stdin=0; +int noconsolecontrols=0; //**************************************************************************// vo_functions_t *video_out=NULL; @@ -1146,7 +1146,7 @@ #else mp_input_add_cmd_fd(0,0,mp_input_win32_slave_cmd_func,NULL); #endif -else if(!use_stdin) +else if(!noconsolecontrols) #ifndef HAVE_NO_POSIX_SELECT mp_input_add_key_fd(0,1,NULL,NULL); #else @@ -1211,7 +1211,7 @@ // We must enable getch2 here to be able to interrupt network connection // or cache filling -if(!use_stdin && !slave_mode){ +if(!noconsolecontrols && !slave_mode){ if(inited_flags&INITED_GETCH2) mp_msg(MSGT_CPLAYER,MSGL_WARN,"WARNING: getch2_init called twice!\n"); else diff -r 3c99b7a8c840 -r fba780800efe parser-mpcmd.c --- a/parser-mpcmd.c Wed Jul 14 09:05:47 2004 +0000 +++ b/parser-mpcmd.c Wed Jul 14 09:27:04 2004 +0000 @@ -236,7 +236,7 @@ // Lock stdin if it will be used as input if(strcasecmp(argv[i],"-") == 0) - m_config_set_option(config,"use-stdin",NULL); + m_config_set_option(config,"noconsolecontrols",NULL); add_entry(&last_parent,&last_entry,entry); UNSET_GLOBAL; // We start entry specific options