13
0

more debugging

git-svn-id: svn://localhost/ardour2/branches/3.0@8063 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-11-20 22:40:06 +00:00
parent 16982456ab
commit e3fc510d16

View File

@ -55,6 +55,12 @@ Port::Port (std::string const & n, DataType t, Flags f)
throw failed_constructor ();
}
if (jack_port_by_name (_engine->jack(), _name.c_str()) == NULL) {
cerr << "Port name " << _name << " does not currently exist\n";
} else {
cerr << "Port name " << _name << " is already registered\n";
}
if ((_jack_port = jack_port_register (_engine->jack (), _name.c_str (), t.to_jack_type (), _flags, 0)) == 0) {
cerr << "Failed to register JACK port, reason is unknown from here\n";
throw failed_constructor ();