Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-python-vlc for 
openSUSE:Factory checked in at 2022-03-01 17:03:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-vlc (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-vlc.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-vlc"

Tue Mar  1 17:03:43 2022 rev:11 rq:958230 version:3.0.16120

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-vlc/python-python-vlc.changes      
2021-04-21 21:01:01.666355230 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-python-vlc.new.1958/python-python-vlc.changes
    2022-03-01 17:04:29.092348030 +0100
@@ -1,0 +2,5 @@
+Tue Mar  1 07:07:11 UTC 2022 - Luigi Baldoni <aloi...@gmx.com>
+
+- Update to version 3.0.16120 (no changelog supplied)
+
+-------------------------------------------------------------------

Old:
----
  python-vlc-3.0.12118.tar.gz

New:
----
  python-vlc-3.0.16120.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-python-vlc.spec ++++++
--- /var/tmp/diff_new_pack.h5XJLd/_old  2022-03-01 17:04:29.604348166 +0100
+++ /var/tmp/diff_new_pack.h5XJLd/_new  2022-03-01 17:04:29.608348167 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-python-vlc
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           python-python-vlc
-Version:        3.0.12118
+Version:        3.0.16120
 Release:        0
 Summary:        VLC bindings for python
 License:        LGPL-2.0-or-later

++++++ python-vlc-3.0.12118.tar.gz -> python-vlc-3.0.16120.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/PKG-INFO 
new/python-vlc-3.0.16120/PKG-INFO
--- old/python-vlc-3.0.12118/PKG-INFO   2021-04-20 22:26:51.392378000 +0200
+++ new/python-vlc-3.0.16120/PKG-INFO   2022-02-28 20:33:24.841742800 +0100
@@ -1,6 +1,6 @@
-Metadata-Version: 1.2
+Metadata-Version: 2.1
 Name: python-vlc
-Version: 3.0.12118
+Version: 3.0.16120
 Summary: VLC bindings for python.
 Home-page: http://wiki.videolan.org/PythonBinding
 Author: Olivier Aubert
@@ -8,14 +8,6 @@
 Maintainer: Olivier Aubert
 Maintainer-email: cont...@olivieraubert.net
 License: LGPL-2.1+
-Description: This module provides ctypes-based bindings (see
-              http://wiki.videolan.org/PythonBinding) for the native libvlc
-              API (see http://wiki.videolan.org/LibVLC) of the VLC video
-              player. Note that it relies on an already present install of VLC.
-        
-              It has been automatically generated from the include files of
-              vlc 3.0.12, using generator 1.18.
-              
 Keywords: vlc,video
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
@@ -31,3 +23,14 @@
 Classifier: Topic :: Multimedia
 Classifier: Topic :: Multimedia :: Sound/Audio
 Classifier: Topic :: Multimedia :: Video
+License-File: COPYING
+
+This module provides ctypes-based bindings (see
+      http://wiki.videolan.org/PythonBinding) for the native libvlc
+      API (see http://wiki.videolan.org/LibVLC) of the VLC video
+      player. Note that it relies on an already present install of VLC.
+
+      It has been automatically generated from the include files of
+      vlc 3.0.16, using generator 1.20.
+      
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/examples/cocoavlc.py 
new/python-vlc-3.0.16120/examples/cocoavlc.py
--- old/python-vlc-3.0.12118/examples/cocoavlc.py       2020-12-03 
09:54:05.000000000 +0100
+++ new/python-vlc-3.0.16120/examples/cocoavlc.py       2021-10-08 
11:14:06.000000000 +0200
@@ -1,4 +1,4 @@
-
+#! /usr/bin/env python3
 # -*- coding: utf-8 -*-
 
 # Example of using PyCocoa <https://PyPI.org/project/PyCocoa> to create a
@@ -6,17 +6,22 @@
 # The Python-VLC binding <https://PyPI.Python.org/pypi/python-vlc> and the
 # corresponding VLC App, see <https://www.VideoLan.org/index.html>.
 
-# This VLC player has been tested with VLC 3.0.11, 3.0.10, 3.0.8, 3.0.7,
-# 3.0.6, 3.0.4, 3.0.2, 3.0.1, 2.2.8 and 2.2.6 and the compatible vlc.py
-# Python-VLC binding using 64-bit Python 3.9.0, 3.8.6, 3.7.0-4, 3.6.4-5
-# and 2.7.14-18 on macOS 11.0.1 (10.16) Big Sur, 10.15.6 Catalina, 10.14.6
-# Mojave and 10.13.4-6 High Sierra.  This player does not work with PyPy
-# <https://PyPy.org> nor with Intel(R) Python
-# <https://Software.Intel.com/en-us/distribution-for-python>.
+# PyCocoa version 21.8.18 or later must be installed.
+
+# This VLC player has been tested with VLC 3.0.10-12, 3.0.6-8, 3.0.4,
+# 3.0.1-2, 2.2.8 and 2.2.6 and the compatible vlc.py Python-VLC binding
+# using 64-bit Python 3.10.0.rc1, 3.9.6, 3.9.0-1, 3.8.10, 3.8.6, 3.7.0-4,
+# 3.6.4-5 and 2.7.14-18 on macOS 11.5.2 Big Sur (aka 10.16), 10.15.6
+# Catalina, 10.14.6 Mojave and 10.13.4-6 High Sierra.  This player
+# does not work with PyPy <https://PyPy.org> nor with Intel(R) Python
+# <https://Software.Intel.com/en-us/distribution-for-python>.  Python
+# 3.10.0rc1, 3.9.6 and macOS' Python 2.7.16 run on Apple Silicon (C{arm64}),
+# all other Python versions run on Intel (C{x86_64}) or I{emulated} Intel
+# (C{"arm64_x86_64"}, see function C{pycocoa.machine}).
 
 # MIT License <https://OpenSource.org/licenses/MIT>
 #
-# Copyright (C) 2017-2020 -- mrJean1 at Gmail -- All Rights Reserved.
+# Copyright (C) 2017-2021 -- mrJean1 at Gmail -- All Rights Reserved.
 #
 # Permission is hereby granted, free of charge, to any person obtaining a
 # copy of this software and associated documentation files (the "Software"),
@@ -36,37 +41,33 @@
 # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 # OTHER DEALINGS IN THE SOFTWARE.
 
-
 def _PyPI(package):
     return 'see <https://PyPI.org/project/%s>' % (package,)
 
-def _version_toold(version, text):  # PYCHOK expected
-    raise ImportError('%s%s %s or later required, %s' % (text,
-                      _pycocoa_, version, _PyPI('PyCocoa')))
+__all__  = ('AppVLC',)  # PYCHOK expected
+__version__ = '21.08.18'
 
-try:  # PYCHOK expected
+try:
     import vlc
 except ImportError:
-    raise ImportError('no %s module, %s' % ('vlc.py', _PyPI('Python-VLC')))
+    raise ImportError('no %s, %s' % ('vlc.py', _PyPI('Python-VLC')))
 try:
     from pycocoa import __name__    as _pycocoa_, \
                         __version__ as _pycocoa_version
 except ImportError:
-    raise ImportError('no %s module, %s' % (_pycocoa_, _PyPI('PyCocoa')))
-if _pycocoa_version < '18.08.09':
-    _version_toold('18.8.9', '')
-
-import platform
-_macOS = platform.mac_ver()[0:3:2]
-if _macOS[0] > '10.15' and _pycocoa_version < '20.11.30':
-    _version_toold('20.11.30', 'on macOS %s (%s), ' % _macOS)
+    raise ImportError('no %s, %s' % (_pycocoa_, _PyPI('PyCocoa')))
+if _pycocoa_version < __version__:
+    raise ImportError('%s %s or later required, %s' % (
+                      _pycocoa_, __version__, _PyPI('PyCocoa')))
+del _PyPI
 
 # all imports listed explicitly to help PyChecker
 from pycocoa import App, app_title, aspect_ratio, bytes2str, closeTables, \
-                    get_printer, Item, ItemSeparator, MediaWindow, Menu, \
+                    get_printer, Item, ItemSeparator, machine, MediaWindow, 
Menu, \
                     OpenPanel, printf, str2bytes, Table, z1000str, zSIstr
 
 from os.path import basename, getsize, isfile, splitext
+import platform as _platform
 import sys
 from threading import Thread
 from time import sleep, strftime, strptime
@@ -75,9 +76,6 @@
 except ImportError:
     from urllib.parse import unquote as mrl_unquote  # Python 3+
 
-__all__  = ('AppVLC',)
-__version__ = '20.12.02'
-
 _Adjust  = vlc.VideoAdjustOption  # Enum
 # <https://Wiki.VideoLan.org/Documentation:Modules/adjust>
 _Adjust3 = {_Adjust.Brightness: (0, 1, 2),
@@ -87,12 +85,11 @@
             _Adjust.Saturation: (0, 1, 3)}
 _Argv0   = splitext(basename(__file__))[0]
 _Movies  = '.m4v', '.mov', '.mp4'  # lower-case file types for movies, videos
-_Python  = sys.version.split()[0], platform.architecture()[0]  # PYCHOK false
+_Python  = sys.version.split()[0], _platform.architecture()[0]  # PYCHOK false
 _Select  = 'Select a video file from the panel'
 _VLC_3_  = vlc.__version__.split('.')[0] > '2' and \
            bytes2str(vlc.libvlc_get_version().split(b'.')[0]) > '2'
 
-del platform, _version_toold  # _PyPI
 
 # <https://Wiki.Videolan.org/Documentation:Modules/marq/#appendix_marq-color>
 class _Color(object):  # PYCHOK expected
@@ -116,6 +113,12 @@
 _Color = _Color()  # PYCHOK enum-like
 
 
+def _macOS(sep=None):
+    # get macOS version and extended platform.machine
+    t = 'macOS', _platform.mac_ver()[0], machine()
+    return sep.join(t) if sep else t
+
+
 def _mspf(fps):
     # convert frames per second to frame length in millisecs per frame
     return 1000.0 / (fps or 25)
@@ -126,6 +129,11 @@
     return '%.3f s' % (max(ms, 0) * 0.001,)
 
 
+def _ratio2str(by, *w_h):
+    # aspect ratio as string
+    return by.join(map(str, (w_h + ('-', '-'))[:2]))
+
+
 class AppVLC(App):
     '''The application with callback methods for C{app..._},
        C{menu..._} and C{window..._} events.
@@ -281,7 +289,7 @@
             t.append(_Argv0, __version__, '20' + __version__)
             t.append('PyCocoa', _pycocoa_version, '20' + _pycocoa_version)
             t.append('Python', *_Python)
-            t.append('macOS', *_macOS)
+            t.append(*_macOS())
             x = 'built-in' if self.window.screen.isBuiltIn else 'external'
             t.append('screen', x, str(self.window.screen.displayID))
             t.separator()
@@ -312,11 +320,9 @@
             r = p.get_rate()
             t.append('rate', '%s%%' % (int(r * 100),), r)
             w, h = p.video_get_size(0)
-            r = aspect_ratio(w, h) or ''
-            if r:
-                r = '%s:%s' % r
-            t.append('video size', '%sx%s' % (w, h))  # num=0
-            t.append('aspect ratio', str(p.video_get_aspect_ratio()), r)
+            t.append('video size', _ratio2str('x', w, h))  # num=0
+            r = _ratio2str(':', *aspect_ratio(w, h))  # 
p.video_get_aspect_ratio()
+            t.append('aspect ratio', r, _ratio2str(':', *self.window.ratio))
             t.append('scale', '%.3f' % (p.video_get_scale(),), '%.3f' % 
(self.scale,))
             t.separator()
 
@@ -597,8 +603,9 @@
             _title = args.pop(0).strip()
         elif t in ('-v', '--version'):
             # Print version of this cocoavlc.py, PyCocoa, etc.
-            print('%s: %s (%s %s)' % (basename(__file__), __version__,
-                                     _pycocoa_, _pycocoa_version))
+            print('%s: %s (%s %s %s)' % (basename(__file__), __version__,
+                                        _pycocoa_, _pycocoa_version,
+                                        _macOS(sep=' ')))
             try:
                 vlc.print_version()  # PYCHOK expected
                 vlc.print_python()   # PYCHOK expected
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/examples/gtk2vlc.py 
new/python-vlc-3.0.16120/examples/gtk2vlc.py
--- old/python-vlc-3.0.12118/examples/gtk2vlc.py        2020-08-19 
00:16:31.000000000 +0200
+++ new/python-vlc-3.0.16120/examples/gtk2vlc.py        2021-10-08 
11:14:31.000000000 +0200
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python3
 
 #
 # gtk example/widget for VLC Python bindings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/examples/gtkvlc.py 
new/python-vlc-3.0.16120/examples/gtkvlc.py
--- old/python-vlc-3.0.12118/examples/gtkvlc.py 2019-11-01 00:21:02.000000000 
+0100
+++ new/python-vlc-3.0.16120/examples/gtkvlc.py 2021-10-08 11:14:38.000000000 
+0200
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python3
 
 #
 # gtk3 example/widget for VLC Python bindings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/examples/pyobjcvlc.py 
new/python-vlc-3.0.16120/examples/pyobjcvlc.py
--- old/python-vlc-3.0.12118/examples/pyobjcvlc.py      2019-10-27 
20:13:08.000000000 +0100
+++ new/python-vlc-3.0.16120/examples/pyobjcvlc.py      2021-10-08 
11:14:50.000000000 +0200
@@ -1,3 +1,4 @@
+#! /usr/bin/env python3
 
 # -*- coding: utf-8 -*-
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/examples/pyqt5vlc.py 
new/python-vlc-3.0.16120/examples/pyqt5vlc.py
--- old/python-vlc-3.0.12118/examples/pyqt5vlc.py       2020-04-29 
13:11:50.000000000 +0200
+++ new/python-vlc-3.0.16120/examples/pyqt5vlc.py       2021-10-08 
11:14:56.000000000 +0200
@@ -1,3 +1,4 @@
+#! /usr/bin/env python3
 #
 # PyQt5 example for VLC Python bindings
 # Copyright (C) 2009-2010 the VideoLAN team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/examples/qtvlc.py 
new/python-vlc-3.0.16120/examples/qtvlc.py
--- old/python-vlc-3.0.12118/examples/qtvlc.py  2018-07-13 10:56:14.000000000 
+0200
+++ new/python-vlc-3.0.16120/examples/qtvlc.py  2021-10-08 11:15:01.000000000 
+0200
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python3
 
 #
 # Qt example for VLC Python bindings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/examples/tkvlc.py 
new/python-vlc-3.0.16120/examples/tkvlc.py
--- old/python-vlc-3.0.12118/examples/tkvlc.py  2020-05-07 19:32:39.000000000 
+0200
+++ new/python-vlc-3.0.16120/examples/tkvlc.py  2021-10-08 11:15:06.000000000 
+0200
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python3
 # -*- coding: utf-8 -*-
 
 # tkinter example for VLC Python bindings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/examples/video_sync/main.py 
new/python-vlc-3.0.16120/examples/video_sync/main.py
--- old/python-vlc-3.0.12118/examples/video_sync/main.py        2019-01-30 
23:28:49.000000000 +0100
+++ new/python-vlc-3.0.16120/examples/video_sync/main.py        2021-10-08 
11:17:50.000000000 +0200
@@ -1,3 +1,4 @@
+#! /usr/bin/env python3
 #
 # PyQt5-based video-sync example for VLC Python bindings
 # Copyright (C) 2009-2010 the VideoLAN team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-vlc-3.0.12118/examples/video_sync/mini_player.py 
new/python-vlc-3.0.16120/examples/video_sync/mini_player.py
--- old/python-vlc-3.0.12118/examples/video_sync/mini_player.py 2019-01-30 
23:28:49.000000000 +0100
+++ new/python-vlc-3.0.16120/examples/video_sync/mini_player.py 2021-10-08 
11:17:58.000000000 +0200
@@ -1,3 +1,4 @@
+#! /usr/bin/env python3
 #
 # PyQt5-based video-sync example for VLC Python bindings
 # Copyright (C) 2009-2010 the VideoLAN team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/examples/wxvlc.py 
new/python-vlc-3.0.16120/examples/wxvlc.py
--- old/python-vlc-3.0.12118/examples/wxvlc.py  2019-08-03 19:08:16.000000000 
+0200
+++ new/python-vlc-3.0.16120/examples/wxvlc.py  2021-10-08 11:15:10.000000000 
+0200
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python3
 # -*- coding: utf-8 -*-
 
 # <https://github.com/oaubert/python-vlc/blob/master/examples/wxvlc.py>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/python_vlc.egg-info/PKG-INFO 
new/python-vlc-3.0.16120/python_vlc.egg-info/PKG-INFO
--- old/python-vlc-3.0.12118/python_vlc.egg-info/PKG-INFO       2021-04-20 
22:26:51.000000000 +0200
+++ new/python-vlc-3.0.16120/python_vlc.egg-info/PKG-INFO       2022-02-28 
20:33:24.000000000 +0100
@@ -1,6 +1,6 @@
-Metadata-Version: 1.2
+Metadata-Version: 2.1
 Name: python-vlc
-Version: 3.0.12118
+Version: 3.0.16120
 Summary: VLC bindings for python.
 Home-page: http://wiki.videolan.org/PythonBinding
 Author: Olivier Aubert
@@ -8,14 +8,6 @@
 Maintainer: Olivier Aubert
 Maintainer-email: cont...@olivieraubert.net
 License: LGPL-2.1+
-Description: This module provides ctypes-based bindings (see
-              http://wiki.videolan.org/PythonBinding) for the native libvlc
-              API (see http://wiki.videolan.org/LibVLC) of the VLC video
-              player. Note that it relies on an already present install of VLC.
-        
-              It has been automatically generated from the include files of
-              vlc 3.0.12, using generator 1.18.
-              
 Keywords: vlc,video
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
@@ -31,3 +23,14 @@
 Classifier: Topic :: Multimedia
 Classifier: Topic :: Multimedia :: Sound/Audio
 Classifier: Topic :: Multimedia :: Video
+License-File: COPYING
+
+This module provides ctypes-based bindings (see
+      http://wiki.videolan.org/PythonBinding) for the native libvlc
+      API (see http://wiki.videolan.org/LibVLC) of the VLC video
+      player. Note that it relies on an already present install of VLC.
+
+      It has been automatically generated from the include files of
+      vlc 3.0.16, using generator 1.20.
+      
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/setup.py 
new/python-vlc-3.0.16120/setup.py
--- old/python-vlc-3.0.12118/setup.py   2021-04-20 20:46:07.000000000 +0200
+++ new/python-vlc-3.0.16120/setup.py   2022-02-28 20:29:27.000000000 +0100
@@ -4,7 +4,7 @@
 from setuptools import setup
 
 setup(name='python-vlc',
-      version = '3.0.12118',
+      version = '3.0.16120',
       author='Olivier Aubert',
       author_email='cont...@olivieraubert.net',
       maintainer='Olivier Aubert',
@@ -35,5 +35,5 @@
       player. Note that it relies on an already present install of VLC.
 
       It has been automatically generated from the include files of
-      vlc 3.0.12, using generator 1.18.
+      vlc 3.0.16, using generator 1.20.
       """)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-vlc-3.0.12118/vlc.py 
new/python-vlc-3.0.16120/vlc.py
--- old/python-vlc-3.0.12118/vlc.py     2021-04-20 20:46:07.000000000 +0200
+++ new/python-vlc-3.0.16120/vlc.py     2022-02-28 20:29:27.000000000 +0100
@@ -47,15 +47,14 @@
 import functools
 
 # Used by EventManager in override.py
-from inspect import getargspec, signature
-
+import inspect as _inspect
 import logging
 logger = logging.getLogger(__name__)
 
-__version__ = "3.0.12118"
-__libvlc_version__ = "3.0.12"
-__generator_version__ = "1.18"
-build_date  = "Tue Apr 20 20:46:07 2021 3.0.12"
+__version__ = "3.0.16120"
+__libvlc_version__ = "3.0.16"
+__generator_version__ = "1.20"
+build_date  = "Mon Feb 28 20:29:27 2022 3.0.16"
 
 # The libvlc doc states that filenames are expected to be in UTF8, do
 # not rely on sys.getfilesystemencoding() which will be confused,
@@ -83,6 +82,12 @@
             return b.decode(DEFAULT_ENCODING)
         else:
             return b
+
+    def len_args(func):
+        """Return number of positional arguments.
+        """
+        return len(_inspect.signature(func).parameters)
+
 else:
     str = str
     unicode = unicode
@@ -105,6 +110,11 @@
         else:
             return b
 
+    def len_args(func):
+        """Return number of positional arguments.
+        """
+        return len(_inspect.getargspec(func).args)
+
 # Internal guard to prevent internal classes to be directly
 # instanciated.
 _internal_guard = object()
@@ -1621,6 +1631,7 @@
         return libvlc_audio_equalizer_new()
 
 
+
     def release(self):
         '''Release a previously created equalizer instance.
         The equalizer was previously created by using L{new}() or
@@ -1719,7 +1730,7 @@
         if not hasattr(callback, '__call__'):  # callable()
             raise VLCException("%s required: %r" % ('callable', callback))
          # check that the callback expects arguments
-        if not any(getargspec(callback)[:2]):  # list(...)
+        if len_args(callback) < 1:  # list(...)
             raise VLCException("%s required: %r" % ('argument', callback))
 
         if self._callback_handler is None:
@@ -1867,11 +1878,9 @@
         """
         # API 3 vs 4: libvlc_media_list_new does not take any
         # parameter as input anymore.
-        if len(signature(libvlc_media_list_new).parameters) == 1:
-            # API <= 3
+        if len_args(libvlc_media_list_new) == 1:  # API <= 3
             l = libvlc_media_list_new(self)
-        else:
-            # API >= 4
+        else:  # API >= 4
             l = libvlc_media_list_new()
         # We should take the lock, but since we did not leak the
         # reference, nobody else can access it.
@@ -3314,7 +3323,7 @@
         @version: LibVLC 3.0.0 and later.
         '''
         chapterDescription_pp = ctypes.POINTER(ChapterDescription)()
-        n = libvlc_media_player_get_full_chapter_descriptions(self, 
ctypes.byref(chapterDescription_pp))
+        n = libvlc_media_player_get_full_chapter_descriptions(self, 
i_chapters_of_title, ctypes.byref(chapterDescription_pp))
         info = ctypes.cast(chapterDescription_pp, 
ctypes.POINTER(ctypes.POINTER(ChapterDescription) * n))
         try:
             contents = info.contents
@@ -8562,7 +8571,8 @@
         # Instance() call above, see 
<http://www.videolan.org/doc/play-howto/en/ch04.html>
         player.video_set_marquee_int(VideoMarqueeOption.Enable, 1)
         player.video_set_marquee_int(VideoMarqueeOption.Size, 24)  # pixels
-        player.video_set_marquee_int(VideoMarqueeOption.Position, 
Position.Bottom)
+        # FIXME: This crashes the module - it should be investigated
+        # player.video_set_marquee_int(VideoMarqueeOption.Position, 
Position.bottom)
         if False:  # only one marquee can be specified
             player.video_set_marquee_int(VideoMarqueeOption.Timeout, 5000)  # 
millisec, 0==forever
             t = media.get_mrl()  # movie

Reply via email to