diff --git a/libs/ardour/element_importer.cc b/libs/ardour/element_importer.cc index 0738b091a7..811880e44c 100644 --- a/libs/ardour/element_importer.cc +++ b/libs/ardour/element_importer.cc @@ -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 ()