Properly announce support for Vendor string
[ardour.git] / libs / ardour / io_processor.cc
index a7e13fecb411395b8dc6d99e5c9e817bacb4b3b7..e87b5a59127c2b3651a966269f516ebf971c230a 100644 (file)
@@ -230,14 +230,6 @@ IOProcessor::silence (samplecnt_t nframes, samplepos_t /* start_sample */)
        }
 }
 
-void
-IOProcessor::increment_port_buffer_offset (pframes_t offset)
-{
-        if (_own_output && _output) {
-                _output->increment_port_buffer_offset (offset);
-        }
-}
-
 ChanCount
 IOProcessor::natural_output_streams() const
 {
@@ -295,9 +287,12 @@ IOProcessor::prepare_for_reset (XMLNode &state, const std::string& name)
        state.set_property ("ignore-bitslot", true);
        state.set_property ("ignore-name", true);
 
-       XMLNode* io_node = state.child (IO::state_node_name.c_str());
+       XMLNodeList nlist = state.children();
+       XMLNodeIterator niter;
 
-       if (io_node) {
-               IO::prepare_for_reset (*io_node, name);
+       for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
+               if ((*niter)->name() == IO::state_node_name.c_str()) {
+                       IO::prepare_for_reset (**niter, name);
+               }
        }
 }