summaryrefslogtreecommitdiffstats
path: root/input/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input/input.c')
-rw-r--r--input/input.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c
index 2b2fe5007c..ef9a6e04bd 100644
--- a/input/input.c
+++ b/input/input.c
@@ -542,6 +542,7 @@ mp_input_add_key_fd(int fd, int select, mp_key_func_t read_func, mp_close_func_t
mp_cmd_t*
mp_input_parse_cmd(char* str) {
int i,l;
+ int pausing = 0;
char *ptr,*e;
mp_cmd_t *cmd, *cmd_def;
@@ -549,6 +550,11 @@ mp_input_parse_cmd(char* str) {
assert(str != NULL);
#endif
+ if (strncmp(str, "pausing ", 8) == 0) {
+ pausing = 1;
+ str = &str[8];
+ }
+
for(ptr = str ; ptr[0] != '\0' && ptr[0] != '\t' && ptr[0] != ' ' ; ptr++)
/* NOTHING */;
if(ptr[0] != '\0')
@@ -572,6 +578,7 @@ mp_input_parse_cmd(char* str) {
cmd = (mp_cmd_t*)malloc(sizeof(mp_cmd_t));
cmd->id = cmd_def->id;
cmd->name = strdup(cmd_def->name);
+ cmd->pausing = pausing;
ptr = str;