[MPlayer-cvslog] r25331 - trunk/input/input.c

ulion subversion at mplayerhq.hu
Mon Dec 10 02:46:02 CET 2007


Author: ulion
Date: Mon Dec 10 02:46:02 2007
New Revision: 25331

Log:
Ignore heading spaces when parsing command.


Modified:
   trunk/input/input.c

Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c	(original)
+++ trunk/input/input.c	Mon Dec 10 02:46:02 2007
@@ -719,6 +719,10 @@ mp_input_parse_cmd(char* str) {
   assert(str != NULL);
 #endif
 
+  // Ignore heading spaces.
+  while (str[0] == ' ' || str[0] == '\t')
+    ++str;
+
   if (strncmp(str, "pausing ", 8) == 0) {
     pausing = 1;
     str = &str[8];



More information about the MPlayer-cvslog mailing list