summaryrefslogtreecommitdiff
path: root/libs/ardour/element_importer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/element_importer.cc')
-rw-r--r--libs/ardour/element_importer.cc8
1 files changed, 1 insertions, 7 deletions
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 ()