diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-03 03:06:15 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-03 03:06:15 +0200 |
commit | 5dfde39a15504b7a086909c8abcff12346eeeefa (patch) | |
tree | 3edfb141ed9bf283977db70c8afe9d58aaa36d76 /libs/ardour/io_processor.cc | |
parent | 50bad9c153d5fc73ca65277ff70c38d07c012ef9 (diff) |
fix IOProcessor state loading for half-duplex I/Os
Diffstat (limited to 'libs/ardour/io_processor.cc')
-rw-r--r-- | libs/ardour/io_processor.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/io_processor.cc b/libs/ardour/io_processor.cc index 824006206f..6a6f09bbe2 100644 --- a/libs/ardour/io_processor.cc +++ b/libs/ardour/io_processor.cc @@ -168,7 +168,7 @@ IOProcessor::set_state (const XMLNode& node, int version) const string instr = enum_2_string (IO::Input); const string outstr = enum_2_string (IO::Output); - if (_own_input) { + if (_own_input && _input) { for (niter = nlist.begin(); niter != nlist.end(); ++niter) { const XMLProperty* prop; if ((prop = (*niter)->property ("name")) != 0) { @@ -197,7 +197,7 @@ IOProcessor::set_state (const XMLNode& node, int version) } - if (_own_output) { + if (_own_output && _output) { for (niter = nlist.begin(); niter != nlist.end(); ++niter) { if ((*niter)->name() == "IO") { const XMLProperty* prop; |