[MPlayer-dev-eng] [PATCH] input: add pausing_resume default.

Nicolas George nicolas.george at normalesup.org
Fri May 3 21:00:07 CEST 2013


---
 DOCS/tech/slave.txt |    2 ++
 input/input.c       |    5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/DOCS/tech/slave.txt b/DOCS/tech/slave.txt
index 6201e5c..6a80d68 100644
--- a/DOCS/tech/slave.txt
+++ b/DOCS/tech/slave.txt
@@ -26,6 +26,8 @@ after processing the command. "pausing_keep " tells MPlayer to do so only if
 it was already in paused mode. "pausing_toggle " tells MPlayer to do so
 only if it was not already in paused mode. Please note that "as soon as
 possible" can be before the command is fully executed.
+If a different default was set on the command line, the "pausing_resume "
+prefix can be used to force MPlayer not to pause.
 As a temporary hack, there is also the _experimental_ "pausing_keep_force "
 prefix, with which MPlayer will not exit the pause loop at all.
 Like this you can avoid the "frame stepping" effect of "pausing_keep "
diff --git a/input/input.c b/input/input.c
index 31106d0..79698e2 100644
--- a/input/input.c
+++ b/input/input.c
@@ -795,7 +795,10 @@ mp_input_parse_cmd(char* str) {
   while (str[0] == ' ' || str[0] == '\t')
     ++str;
 
-  if (strncmp(str, "pausing ", 8) == 0) {
+  if (strncmp(str, "pausing_resume ", 15) == 0) {
+    pausing = 0;
+    str = &str[15];
+  } else if (strncmp(str, "pausing ", 8) == 0) {
     pausing = 1;
     str = &str[8];
   } else if (strncmp(str, "pausing_keep ", 13) == 0) {
-- 
1.7.10.4



More information about the MPlayer-dev-eng mailing list