# HG changeset patch # User cigaes # Date 1367607174 0 # Node ID 2d29160e0957b7a384a2711728641da571b3b239 # Parent 302c864b1d261ce6b0385cdf49bb7ed2ecf5b3cf input: add an option to set the default pausing mode. diff -r 302c864b1d26 -r 2d29160e0957 DOCS/man/en/mplayer.1 --- a/DOCS/man/en/mplayer.1 Fri May 03 13:20:27 2013 +0000 +++ b/DOCS/man/en/mplayer.1 Fri May 03 18:52:54 2013 +0000 @@ -1246,6 +1246,26 @@ wake up the process with similar accuracy when using normal timed sleep. . .TP +.B \-pausing <0\-3> (MPlayer only) +Specifies the default pausing behaviour of commands, i.e. whether MPlayer +will continue playback or stay paused after the command has finished. +See DOCS/tech/slave.txt for further details. +.PD 0 +.RSs +.IPs 0 +resume +.IPs 1 +pause (pausing) +.IPs 2 +keep the paused / playing status (pausing_keep) +.IPs 3 +toggle the paused / playing status (pausing_toggle) +.IPs 4 +pause without frame step (experimental) (pausing_keep_force) +.RE +.PD 1 +. +.TP .B \-playing\-msg Print out a string before starting playback. The following expansions are supported: diff -r 302c864b1d26 -r 2d29160e0957 cfg-mplayer.h --- a/cfg-mplayer.h Fri May 03 13:20:27 2013 +0000 +++ b/cfg-mplayer.h Fri May 03 18:52:54 2013 +0000 @@ -339,6 +339,7 @@ {"mouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, {"nomouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, {"doubleclick-time", &doubleclick_time, CONF_TYPE_INT, CONF_RANGE, 0, 1000, NULL}, + {"pausing", &pausing_default, CONF_TYPE_INT, CONF_RANGE, 0, 4, NULL}, #ifdef CONFIG_TV {"tvscan", tvscan_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL}, #else diff -r 302c864b1d26 -r 2d29160e0957 input/input.c --- a/input/input.c Fri May 03 13:20:27 2013 +0000 +++ b/input/input.c Fri May 03 18:52:54 2013 +0000 @@ -577,6 +577,8 @@ int async_quit_request; +int pausing_default = 0; + static mp_input_fd_t key_fds[MP_MAX_KEY_FD]; static unsigned int num_key_fd = 0; static mp_input_fd_t cmd_fds[MP_MAX_CMD_FD]; @@ -836,7 +838,7 @@ case MP_CMD_SET_MOUSE_POS: pausing = 4; break; default: - pausing = 0; break; + pausing = pausing_default; break; } } cmd->pausing = pausing; diff -r 302c864b1d26 -r 2d29160e0957 input/input.h --- a/input/input.h Fri May 03 13:20:27 2013 +0000 +++ b/input/input.h Fri May 03 18:52:54 2013 +0000 @@ -334,4 +334,6 @@ extern int async_quit_request; +extern int pausing_default; + #endif /* MPLAYER_INPUT_H */