[vlc-commits] python bindings: fix event_detach override in the same way as event_attach in 2a206726

Olivier Aubert git at videolan.org
Thu Apr 14 18:34:30 CEST 2011


vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Thu Apr 14 18:34:23 2011 +0200| [8f2df2c967f88c68654a1cfd9b9b351f5a888ce3] | committer: Olivier Aubert

python bindings: fix event_detach override in the same way as event_attach in 2a206726

> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=8f2df2c967f88c68654a1cfd9b9b351f5a888ce3
---

 generated/vlc.py |    4 ++--
 override.py      |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/generated/vlc.py b/generated/vlc.py
index 52526e9..27d6624 100755
--- a/generated/vlc.py
+++ b/generated/vlc.py
@@ -46,7 +46,7 @@ import sys
 from inspect import getargspec
 
 __version__ = "N/A"
-build_date  = "Tue Mar 29 12:44:43 2011"
+build_date  = "Thu Apr 14 18:33:30 2011"
 
  # Used on win32 and MacOS in override.py
 plugin_path = None
@@ -809,7 +809,7 @@ class EventManager(_Ctype):
         k = eventtype.value
         if k in self._callbacks:
             del self._callbacks[k] # remove, regardless of libvlc return value
-            libvlc_event_detach(self, eventtype, self._callback_handler, k)
+            libvlc_event_detach(self, k, self._callback_handler, k)
 
 class Instance(_Ctype):
     '''Create a new Instance instance.
diff --git a/override.py b/override.py
index 34e47fe..f740d9e 100644
--- a/override.py
+++ b/override.py
@@ -369,4 +369,4 @@ class EventManager:
         k = eventtype.value
         if k in self._callbacks:
             del self._callbacks[k] # remove, regardless of libvlc return value
-            libvlc_event_detach(self, eventtype, self._callback_handler, k)
+            libvlc_event_detach(self, k, self._callback_handler, k)



More information about the vlc-commits mailing list