comparison PyPlugin.cpp @ 89:f92587bedb2c

Further small tidying
author Chris Cannam
date Thu, 10 Jan 2019 15:52:21 +0000
parents 146d14ab15e7
children
comparison
equal deleted inserted replaced
88:0120dac53a69 89:f92587bedb2c
62 if (PyErr_Occurred()) { PyErr_Print(); PyErr_Clear(); } 62 if (PyErr_Occurred()) { PyErr_Print(); PyErr_Clear(); }
63 Py_DECREF(m_pyClass); 63 Py_DECREF(m_pyClass);
64 Py_CLEAR(args); 64 Py_CLEAR(args);
65 Py_CLEAR(pyInputSampleRate); 65 Py_CLEAR(pyInputSampleRate);
66 cerr << "PyPlugin::PyPlugin: Failed to create Python plugin instance for key \"" 66 cerr << "PyPlugin::PyPlugin: Failed to create Python plugin instance for key \""
67 << pluginKey << "\" (is the 1-arg class constructor from sample rate correctly provided?)" << endl; 67 << pluginKey << "\" (is the 1-arg class constructor from sample rate correctly provided?)" << endl;
68 throw std::string("Constructor failed"); 68 throw std::string("Constructor failed");
69 } 69 }
70
70 Py_INCREF(m_pyInstance); 71 Py_INCREF(m_pyInstance);
71 Py_DECREF(args); 72 Py_DECREF(args);
72 Py_DECREF(pyInputSampleRate); 73 Py_DECREF(pyInputSampleRate);
73 74
74 m_instcount++; 75 m_instcount++;