mirror of
https://github.com/mpv-player/mpv
synced 2024-09-09 01:16:56 +02:00
Ignore heading spaces when parsing command.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25331 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
920a892892
commit
5319009dfe
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user