Added optional loading of liblua

This commit is contained in:
jaseg 2014-08-13 23:28:28 +02:00
parent 9b68b0866e
commit 2e6516aa32
1 changed files with 5 additions and 0 deletions

5
mpv.py
View File

@ -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):