Skip to content

Commit

Permalink
Add libcec patch for Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Nov 12, 2024
1 parent 1d4ee12 commit afbb6bd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions patches/libcec-python13.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- 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)
--- 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;
}

0 comments on commit afbb6bd

Please sign in to comment.