diff --git a/src/libcec/SwigHelper.h b/src/libcec/SwigHelper.h index 98559767..cc730242 100644 --- a/src/libcec/SwigHelper.h +++ b/src/libcec/SwigHelper.h @@ -119,7 +119,7 @@ namespace CEC if (!!m_callbacks[callback]) { /** call the callback */ - result = PyEval_CallObject(m_callbacks[callback], arglist); + result = PyObject_CallObject(m_callbacks[callback], arglist); /** unref the argument and result */ if (!!arglist) diff --git a/src/libcec/libcec.i b/src/libcec/libcec.i index 88250be0..03ccd2a4 100644 --- a/src/libcec/libcec.i +++ b/src/libcec/libcec.i @@ -141,7 +141,7 @@ namespace std { if (!!lib) { lib->InitVideoStandalone(); - PyEval_InitThreads(); + // PyEval_InitThreads(); } return lib; }