[vlc-commits] python-vlc: pass enum value to libvlc_event_attach C function
Olivier Aubert
git at videolan.org
Mon Feb 28 16:06:58 CET 2011
vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Feb 28 16:06:50 2011 +0100| [2a206726cb5fe3632b0df774602a25eb492d4052] | committer: Olivier Aubert
python-vlc: pass enum value to libvlc_event_attach C function
This solves typecast issues on 64-bit platforms.
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=2a206726cb5fe3632b0df774602a25eb492d4052
---
generate.py | 1 -
generated/vlc.py | 4 ++--
override.py | 2 +-
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/generate.py b/generate.py
index b8c95b0..08d2380 100755
--- a/generate.py
+++ b/generate.py
@@ -1157,7 +1157,6 @@ Parse VLC include files and generate bindings code for Python or Java.""")
p.check()
elif opts.debug:
g.dump_dicts()
-
elif not _nerrors:
g.save(opts.output)
diff --git a/generated/vlc.py b/generated/vlc.py
index e8e13ec..e9b016a 100755
--- a/generated/vlc.py
+++ b/generated/vlc.py
@@ -46,7 +46,7 @@ import sys
from inspect import getargspec
__version__ = "N/A"
-build_date = "Thu Feb 24 13:58:07 2011"
+build_date = "Mon Feb 28 16:05:11 2011"
# Used on win32 and MacOS in override.py
plugin_path = None
@@ -793,7 +793,7 @@ class EventManager(_Ctype):
self._callbacks = {}
k = eventtype.value
- r = libvlc_event_attach(self, eventtype, self._callback_handler, k)
+ r = libvlc_event_attach(self, k, self._callback_handler, k)
if not r:
self._callbacks[k] = (callback, args, kwds)
return r
diff --git a/override.py b/override.py
index d2d732b..34e47fe 100644
--- a/override.py
+++ b/override.py
@@ -353,7 +353,7 @@ class EventManager:
self._callbacks = {}
k = eventtype.value
- r = libvlc_event_attach(self, eventtype, self._callback_handler, k)
+ r = libvlc_event_attach(self, k, self._callback_handler, k)
if not r:
self._callbacks[k] = (callback, args, kwds)
return r
More information about the vlc-commits
mailing list