[vlc-commits] python: define MediaThumbnailRequest
Olivier Aubert
git at videolan.org
Mon Nov 12 23:10:01 CET 2018
vlc/python | branch: master | Olivier Aubert <contact at olivieraubert.net> | Mon Nov 12 23:07:51 2018 +0100| [bcd28a7c4fdaa38a0a272fd4617741c740c30de0] | committer: Olivier Aubert
python: define MediaThumbnailRequest
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=bcd28a7c4fdaa38a0a272fd4617741c740c30de0
---
generated/3.0/vlc.py | 17 ++++++++++++++---
generated/dev/vlc.py | 9 +++++++--
generator/templates/header.py | 6 ++++++
generator/templates/override.py | 3 +--
4 files changed, 28 insertions(+), 7 deletions(-)
diff --git a/generated/3.0/vlc.py b/generated/3.0/vlc.py
index 111ef9b..c8f1ef2 100644
--- a/generated/3.0/vlc.py
+++ b/generated/3.0/vlc.py
@@ -55,7 +55,7 @@ logger = logging.getLogger(__name__)
__version__ = "3.0.4107"
__libvlc_version__ = "3.0.4"
__generator_version__ = "1.7"
-build_date = "Mon Nov 12 22:49:53 2018 3.0.4"
+build_date = "Mon Nov 12 23:07:30 2018 3.0.4"
# The libvlc doc states that filenames are expected to be in UTF8, do
# not rely on sys.getfilesystemencoding() which will be confused,
@@ -1614,17 +1614,28 @@ class RDDescription(_Cstruct):
('longname', ctypes.c_char_p)
]
+
+class MediaThumbnailRequest:
+ def __new__(cls, *args):
+ if len(args) == 1 and isinstance(args[0], _Ints):
+ return _Constructor(cls, args[0])
+
# End of header.py #
class AudioEqualizer(_Ctype):
- '''N/A
+ '''Create a new default equalizer, with all frequency values zeroed.
+
+ The new equalizer can subsequently be applied to a media player by invoking
+ L{MediaPlayer.set_equalizer}.
+ The returned handle should be freed via libvlc_audio_equalizer_release() when
+ it is no longer needed.
'''
+
def __new__(cls, *args):
if len(args) == 1 and isinstance(args[0], _Ints):
return _Constructor(cls, args[0])
return libvlc_audio_equalizer_new()
-
def release(self):
'''Release a previously created equalizer instance.
The equalizer was previously created by using L{new}() or
diff --git a/generated/dev/vlc.py b/generated/dev/vlc.py
index a3da35a..fd1369f 100755
--- a/generated/dev/vlc.py
+++ b/generated/dev/vlc.py
@@ -55,7 +55,7 @@ logger = logging.getLogger(__name__)
__version__ = "4.0.0-dev-5376-g71cb852338107"
__libvlc_version__ = "4.0.0-dev-5376-g71cb852338"
__generator_version__ = "1.7"
-build_date = "Mon Nov 12 22:54:57 2018 4.0.0-dev-5376-g71cb852338"
+build_date = "Mon Nov 12 23:07:30 2018 4.0.0-dev-5376-g71cb852338"
# The libvlc doc states that filenames are expected to be in UTF8, do
# not rely on sys.getfilesystemencoding() which will be confused,
@@ -1724,6 +1724,12 @@ class RDDescription(_Cstruct):
('longname', ctypes.c_char_p)
]
+
+class MediaThumbnailRequest:
+ def __new__(cls, *args):
+ if len(args) == 1 and isinstance(args[0], _Ints):
+ return _Constructor(cls, args[0])
+
# End of header.py #
class AudioEqualizer(_Ctype):
'''Create a new default equalizer, with all frequency values zeroed.
@@ -1732,7 +1738,6 @@ class AudioEqualizer(_Ctype):
L{MediaPlayer.set_equalizer}.
The returned handle should be freed via libvlc_audio_equalizer_release() when
it is no longer needed.
-
'''
def __new__(cls, *args):
diff --git a/generator/templates/header.py b/generator/templates/header.py
index a6802d2..397813c 100755
--- a/generator/templates/header.py
+++ b/generator/templates/header.py
@@ -682,4 +682,10 @@ class RDDescription(_Cstruct):
('longname', ctypes.c_char_p)
]
+
+class MediaThumbnailRequest:
+ def __new__(cls, *args):
+ if len(args) == 1 and isinstance(args[0], _Ints):
+ return _Constructor(cls, args[0])
+
# End of header.py #
diff --git a/generator/templates/override.py b/generator/templates/override.py
index aa1ad81..0207386 100644
--- a/generator/templates/override.py
+++ b/generator/templates/override.py
@@ -502,8 +502,7 @@ class AudioEqualizer:
The new equalizer can subsequently be applied to a media player by invoking
L{MediaPlayer.set_equalizer}.
The returned handle should be freed via libvlc_audio_equalizer_release() when
- it is no longer needed.
- """
+ it is no longer needed."""
def __new__(cls, *args):
if len(args) == 1 and isinstance(args[0], _Ints):
return _Constructor(cls, args[0])
More information about the vlc-commits
mailing list