diff runner/FeatureExtractionManager.cpp @ 19:bd1deebe1129

* Set track metadata only if non-empty (the RDF feature writer tests for existence rather than non-emptiness when determining whether to write a track)
author Chris Cannam
date Tue, 02 Jun 2009 09:48:04 +0000
parents d20c728c9840
children 9a4e410bda7a
line wrap: on
line diff
--- a/runner/FeatureExtractionManager.cpp	Fri Mar 27 16:52:28 2009 +0000
+++ b/runner/FeatureExtractionManager.cpp	Tue Jun 02 09:48:04 2009 +0000
@@ -516,7 +516,9 @@
                 FeatureWriter::TrackMetadata m;
                 m.title = reader->getTitle();
                 m.maker = reader->getMaker();
-                writers[j]->setTrackMetadata(audioSource, m);
+                if (m.title != "" && m.maker != "") {
+                    writers[j]->setTrackMetadata(audioSource, m);
+                }
             }
         }
     }