summaryrefslogtreecommitdiff
path: root/libs/ardour/audioengine.cc
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2010-12-11 20:56:53 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2010-12-11 20:56:53 +0000
commitccb7a5a7949d834dca0724084a109a4692145d7a (patch)
tree107632d467bef03f0beb5397bab04003e1506cc4 /libs/ardour/audioengine.cc
parentfec8f4ad49682a77163ff4739d8e4a3d044d7fce (diff)
Add a null check to ports when loading an export channel from xml + fix indentation for commit r8247
git-svn-id: svn://localhost/ardour2/branches/3.0@8249 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r--libs/ardour/audioengine.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc
index 7df9d16e90..7da6876577 100644
--- a/libs/ardour/audioengine.cc
+++ b/libs/ardour/audioengine.cc
@@ -979,11 +979,11 @@ AudioEngine::get_port_by_name (const string& portname)
}
if (portname.find_first_of (':') != string::npos) {
- if (portname.substr (0, jack_client_name.length ()) != jack_client_name) {
- /* not an ardour: port */
- return 0;
- }
- }
+ if (portname.substr (0, jack_client_name.length ()) != jack_client_name) {
+ /* not an ardour: port */
+ return 0;
+ }
+ }
std::string const rel = make_port_name_relative (portname);