13
0

Use XMLNode::get_property in ARDOUR::ElementImporter

This commit is contained in:
Tim Mayberry 2016-09-21 11:30:31 +10:00
parent 5c387b76b8
commit 0ae2985a21

View File

@ -41,13 +41,7 @@ ElementImporter::ElementImporter (XMLTree const & source, ARDOUR::Session & sess
_queued (false),
_broken (false)
{
// Get samplerate
XMLProperty const * prop;
prop = source.root()->property ("sample-rate");
if (prop) {
std::istringstream iss (prop->value());
iss >> sample_rate;
}
source.root()->get_property ("sample-rate", sample_rate);
}
ElementImporter::~ElementImporter ()