# HG changeset patch # User Chris Cannam # Date 1364485757 0 # Node ID e85513153c718a6b4d5fbf2fcf576b8f11e52d2d # Parent bd9a63d35e71aea8afc977b2892a3601c37d357c Initialise rate to 0. Otherwise there's a danger plugins will change the SampleType (e.g. to VariableSampleRate) but not set the rate because they don't think they need it (when in fact it needs to be set to 0) diff -r bd9a63d35e71 -r e85513153c71 vamp-sdk/Plugin.h --- a/vamp-sdk/Plugin.h Thu Mar 28 13:40:38 2013 +0000 +++ b/vamp-sdk/Plugin.h Thu Mar 28 15:49:17 2013 +0000 @@ -321,7 +321,7 @@ OutputDescriptor() : // defaults for mandatory non-class-type members hasFixedBinCount(false), hasKnownExtents(false), isQuantized(false), - sampleType(OneSamplePerStep), hasDuration(false) { } + sampleType(OneSamplePerStep), sampleRate(0), hasDuration(false) { } }; typedef std::vector OutputList;