diff vamp-sdk/Plugin.h @ 377:e43186ff8854

Fix some uninitialised members that Coverity otherwise complains about
author Chris Cannam
date Wed, 03 Sep 2014 12:14:39 +0100
parents e85513153c71
children 4a86f866bb6b
line wrap: on
line diff
--- a/vamp-sdk/Plugin.h	Thu Aug 07 20:30:36 2014 +0100
+++ b/vamp-sdk/Plugin.h	Wed Sep 03 12:14:39 2014 +0100
@@ -320,8 +320,16 @@
         bool hasDuration;
 
         OutputDescriptor() : // defaults for mandatory non-class-type members
-            hasFixedBinCount(false), hasKnownExtents(false), isQuantized(false),
-            sampleType(OneSamplePerStep), sampleRate(0), hasDuration(false) { }
+            hasFixedBinCount(false),
+            binCount(0),
+            hasKnownExtents(false),
+            minValue(0),
+            maxValue(0),
+            isQuantized(false),
+            quantizeStep(0),
+            sampleType(OneSamplePerStep), 
+            sampleRate(0), 
+            hasDuration(false) { }
     };
 
     typedef std::vector<OutputDescriptor> OutputList;