Move curve test file handling in main() until after ARDOUR::init is called
This means it doesn't need to call PBD::ID::init directly, which it now shouldn't be doing
This commit is contained in:
parent
611058bf58
commit
7a431f892e
@ -32,11 +32,6 @@ using namespace PBD;
|
||||
int
|
||||
curvetest (string filename)
|
||||
{
|
||||
// needed to initialize ID objects/counter used
|
||||
// by Curve et al.
|
||||
|
||||
PBD::ID::init ();
|
||||
|
||||
ifstream in (filename.c_str());
|
||||
stringstream line;
|
||||
//Evoral::Parameter param(GainAutomation, -1.0, +1.0, 0.0);
|
||||
|
@ -482,10 +482,6 @@ int main (int argc, char *argv[])
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if (curvetest_file) {
|
||||
return curvetest (curvetest_file);
|
||||
}
|
||||
|
||||
cout << PROGRAM_NAME
|
||||
<< VERSIONSTRING
|
||||
<< _(" (built using ")
|
||||
@ -518,6 +514,10 @@ int main (int argc, char *argv[])
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if (curvetest_file) {
|
||||
return curvetest (curvetest_file);
|
||||
}
|
||||
|
||||
if (::signal (SIGPIPE, sigpipe_handler)) {
|
||||
cerr << _("Cannot xinstall SIGPIPE error handler") << endl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user