Use XMLNode::get_property in ARDOUR::ElementImporter
This commit is contained in:
parent
5c387b76b8
commit
0ae2985a21
@ -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 ()
|
||||
|
Loading…
Reference in New Issue
Block a user