diff options
author | wm4 <wm4@nowhere> | 2014-10-26 01:00:34 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-26 01:40:36 +0200 |
commit | 38546d5a998e546b976fc5b8c0525cead670e9f3 (patch) | |
tree | 109ee01c532cfa4f478a57c52b58168104543aab /player/lua.c | |
parent | 0cfada604d9c87c43c12d461ae3e4daebf05771d (diff) | |
download | mpv-38546d5a998e546b976fc5b8c0525cead670e9f3.tar.bz2 mpv-38546d5a998e546b976fc5b8c0525cead670e9f3.tar.xz |
lua: parse_json(): fix inverted condition for trail argument
It accidentally had the opposite meaning.
Diffstat (limited to 'player/lua.c')
-rw-r--r-- | player/lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua.c b/player/lua.c index 66240f9975..260877732e 100644 --- a/player/lua.c +++ b/player/lua.c @@ -1314,7 +1314,7 @@ static int script_parse_json(lua_State *L) struct mpv_node node; if (json_parse(tmp, &node, &text, 32) >= 0) { json_skip_whitespace(&text); - ok = !text[0] || !trail; + ok = !text[0] || trail; } if (ok) { pushnode(L, &node); |