diff options
Diffstat (limited to 'src/VideoPlayer.cpp')
-rw-r--r-- | src/VideoPlayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index 0ad4152..ac93ecc 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -254,7 +254,7 @@ namespace QuickMedia { if(buffer[i] != '\n') continue; - if(json_reader->parse(buffer + start, buffer + i, &json_root, &json_errors)) { + if(json_reader->parse(buffer + start, buffer + i, &json_root, &json_errors) && json_root.isObject()) { const Json::Value &event = json_root["event"]; const Json::Value &request_id_json = json_root["request_id"]; if(event.isString()) { |