Fix loading of PortInserts from 2.X sessions.
authorCarl Hetherington <carl@carlh.net>
Thu, 16 Dec 2010 12:48:50 +0000 (12:48 +0000)
committerCarl Hetherington <carl@carlh.net>
Thu, 16 Dec 2010 12:48:50 +0000 (12:48 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@8287 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/port_insert.cc

index 492fca27237bd11a4cd7a0b1fbdf1397ed4ce98a..f0940670d44164a9d423ee22c9a0cf265b4f59ea 100644 (file)
@@ -184,9 +184,9 @@ PortInsert::set_state (const XMLNode& node, int version)
 
        const XMLNode* insert_node = &node;
 
-       // legacy sessions: search for child IOProcessor node
+       // legacy sessions: search for child Redirect node
        for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
-               if ((*niter)->name() == "IOProcessor") {
+               if ((*niter)->name() == "Redirect") {
                        insert_node = *niter;
                        break;
                }