summaryrefslogtreecommitdiff
path: root/libs/ardour/element_importer.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-09-21 11:30:31 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-04-19 09:37:00 +1000
commit0ae2985a21430c2d4784d14849afac71a2cf1c1a (patch)
tree1102564be648e6db662e83cd24c2fc41b03cefd6 /libs/ardour/element_importer.cc
parent5c387b76b81e2f2eddc3f1362857a240a9e1867b (diff)
Use XMLNode::get_property in ARDOUR::ElementImporter
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 ()