summaryrefslogtreecommitdiff
path: root/py/pykms/__init__.py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-09-05 11:01:17 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-09-05 11:15:28 +0300
commit95de32aa7fbb1a2da547418b296f649ee4be1feb (patch)
tree50f81d2afc63357e7cfc18e2b23b1cd67e977a72 /py/pykms/__init__.py
parentd6300fcfb0bc420ff30a6c8f44f9b5fe862cdb3d (diff)
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/__init__.py')
-rw-r--r--py/pykms/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/pykms/__init__.py b/py/pykms/__init__.py
index 3b5f743..746c917 100644
--- a/py/pykms/__init__.py
+++ b/py/pykms/__init__.py
@@ -130,7 +130,7 @@ def __card_read_events(self):
seq = vbl_tuple[3]
time = vbl_tuple[1] + vbl_tuple[2] / 1000000.0;
- udata = pykms.__ob_unpack_helper(vbl_tuple[0])
+ udata = vbl_tuple[0]
yield DrmEvent(type, seq, time, udata)