aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen2017-09-05 03:01:17 -0500
committerTomi Valkeinen2017-09-05 03:15:28 -0500
commit95de32aa7fbb1a2da547418b296f649ee4be1feb (patch)
tree50f81d2afc63357e7cfc18e2b23b1cd67e977a72 /py/pykms/pykms.cpp
parentd6300fcfb0bc420ff30a6c8f44f9b5fe862cdb3d (diff)
downloadexternal-kmsxx-95de32aa7fbb1a2da547418b296f649ee4be1feb.tar.gz
external-kmsxx-95de32aa7fbb1a2da547418b296f649ee4be1feb.tar.xz
external-kmsxx-95de32aa7fbb1a2da547418b296f649ee4be1feb.zip
py: drop the fancy event handling
Unfortunately the nice event handler added previously doesn't work: we may get multiple page-flip events, which would lead to unref'ing the passed python object multiple times, leading to memory corruption. I guess it's only possible to pass a plain int as user data to commit() and page_flip().
Diffstat (limited to 'py/pykms/pykms.cpp')
-rw-r--r--py/pykms/pykms.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/py/pykms/pykms.cpp b/py/pykms/pykms.cpp
index 7752f19..1e54c9b 100644
--- a/py/pykms/pykms.cpp
+++ b/py/pykms/pykms.cpp
@@ -20,11 +20,6 @@ PYBIND11_PLUGIN(pykms) {
20 20
21 init_pykmsbase(m); 21 init_pykmsbase(m);
22 22
23 m.def("__ob_unpack_helper", [](uint64_t v) {
24 // AtomicReq::commit or Crtc::page_flip added a ref, so we can use borrowed = false
25 return py::object((PyObject*)v, false);
26 });
27
28 init_pykmstest(m); 23 init_pykmstest(m);
29 24
30 init_pyvid(m); 25 init_pyvid(m);