diff options
author | jaseg <code@jaseg.net> | 2014-08-13 23:28:28 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2014-08-13 23:28:28 +0200 |
commit | 2e6516aa32efe7ba7090138e7834a4eb89801163 (patch) | |
tree | adf668818b0825eb85fb9994b3dbdb108a08e9f4 /mpv.py | |
parent | 9b68b0866ec49228ccaf3b455990a66838084082 (diff) | |
download | python-mpv-2e6516aa32efe7ba7090138e7834a4eb89801163.tar.gz python-mpv-2e6516aa32efe7ba7090138e7834a4eb89801163.tar.bz2 python-mpv-2e6516aa32efe7ba7090138e7834a4eb89801163.zip |
Added optional loading of liblua
Diffstat (limited to 'mpv.py')
-rw-r--r-- | mpv.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -244,6 +244,11 @@ def _event_generator(handle): raise StopIteration() yield event +def load_lua(): + """ Use this function if you intend to use mpv's built-in lua interpreter. This is e.g. needed for playback of + youtube urls. """ + CDLL('liblua.so', mode=RTLD_GLOBAL) + class MPV: """ See man mpv(1) for the details of the implemented commands. """ def __init__(self, loop=None, **kwargs): |