# HG changeset patch # User Chris Cannam # Date 1486644840 0 # Node ID 587e9691a44eddceb974276edad684195bf22033 # Parent fbc61cf65c64af7c55eb7d3d65f9dcc5685c3e65# Parent c9471a9f4b71a64268575bdc8d57364421cff567 Merge pull request #4 from piper-audio/test/plugin-stub-configured-framing Test/plugin stub configured framing diff -r c9471a9f4b71 -r 587e9691a44e README.md --- a/README.md Thu Feb 09 12:06:43 2017 +0000 +++ b/README.md Thu Feb 09 12:54:00 2017 +0000 @@ -34,8 +34,8 @@ ## Authors and licensing -Written by Chris Cannam at the Centre for Digital Music, Queen Mary, -University of London. +Written by Chris Cannam and Lucas Thompson at the Centre for Digital +Music, Queen Mary, University of London. Copyright (c) 2015-2017 Queen Mary, University of London, provided under a BSD-style licence. See the file COPYING for details. diff -r c9471a9f4b71 -r 587e9691a44e vamp-json/VampJson.h --- a/vamp-json/VampJson.h Thu Feb 09 12:06:43 2017 +0000 +++ b/vamp-json/VampJson.h Thu Feb 09 12:54:00 2017 +0000 @@ -479,11 +479,11 @@ Vamp::Plugin::FeatureList fl; if (!j.is_array()) { err = "array expected for feature list"; - return {}; + return fl; } for (const json11::Json &fj : j.array_items()) { fl.push_back(toFeature(fj, serialisation, err)); - if (failed(err)) return {}; + if (failed(err)) return fl; } return fl; } @@ -497,16 +497,16 @@ Vamp::Plugin::FeatureSet fs; if (!j.is_object()) { err = "object expected for feature set"; - return {}; + return fs; } for (auto &entry : j.object_items()) { int n = omapper.idToIndex(entry.first); if (fs.find(n) != fs.end()) { err = "duplicate numerical index for output"; - return {}; + return fs; } fs[n] = toFeatureList(entry.second, serialisation, err); - if (failed(err)) return {}; + if (failed(err)) return fs; } return fs; }