summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2014-08-13 23:28:28 +0200
committerjaseg <code@jaseg.net>2014-08-13 23:28:28 +0200
commit2e6516aa32efe7ba7090138e7834a4eb89801163 (patch)
treeadf668818b0825eb85fb9994b3dbdb108a08e9f4 /mpv.py
parent9b68b0866ec49228ccaf3b455990a66838084082 (diff)
downloadpython-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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mpv.py b/mpv.py
index 98ca862..e015a71 100644
--- a/mpv.py
+++ b/mpv.py
@@ -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):