diff --git a/src/libcec/SwigHelper.h b/src/libcec/SwigHelper.h index 985597674..cc7302424 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 88250be07..03ccd2a45 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; }