vlc/python | branch: master | Olivier Aubert <[email protected]> | Sat 
Aug  3 20:12:43 2019 +0200| [54a8e3f0b6867d1e9a20c318ac14fb1ca1b672e0] | 
committer: Olivier Aubert

python: fix callback blacklisting

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

 generator/generate.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/generator/generate.py b/generator/generate.py
index 739415a..2551034 100755
--- a/generator/generate.py
+++ b/generator/generate.py
@@ -104,6 +104,8 @@ _blacklist = {
     'libvlc_printerr': '',
     # Waiting for some structure wrapping
     'libvlc_dialog_set_callbacks': '',
+    # Its signature is a mess
+    'libvlc_video_direct3d_set_resize_cb': '',
 }
 
 # Set of functions that return a string that the caller is
@@ -504,6 +506,9 @@ class Parser(object):
         @return: yield a Func instance for each callback signature, unless 
blacklisted.
         """
         for type_, name, pars, docs, line in 
self.parse_groups(callback_type_re.match, callback_re.match, ');'):
+            if name in _blacklist:
+                _blacklist[name] = type_
+                continue
 
             pars = [self.parse_param(p) for p in paramlist_re.split(pars)]
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to