Mercurial > hg > sonic-annotator
comparison 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 |
comparison
equal
deleted
inserted
replaced
18:4eab258f3505 | 19:bd1deebe1129 |
---|---|
514 | 514 |
515 for (int j = 0; j < (int)writers.size(); ++j) { | 515 for (int j = 0; j < (int)writers.size(); ++j) { |
516 FeatureWriter::TrackMetadata m; | 516 FeatureWriter::TrackMetadata m; |
517 m.title = reader->getTitle(); | 517 m.title = reader->getTitle(); |
518 m.maker = reader->getMaker(); | 518 m.maker = reader->getMaker(); |
519 writers[j]->setTrackMetadata(audioSource, m); | 519 if (m.title != "" && m.maker != "") { |
520 writers[j]->setTrackMetadata(audioSource, m); | |
521 } | |
520 } | 522 } |
521 } | 523 } |
522 } | 524 } |
523 | 525 |
524 ProgressPrinter extractionProgress("Extracting and writing features..."); | 526 ProgressPrinter extractionProgress("Extracting and writing features..."); |