From 2e6516aa32efe7ba7090138e7834a4eb89801163 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 13 Aug 2014 23:28:28 +0200 Subject: Added optional loading of liblua --- mpv.py | 5 +++++ 1 file changed, 5 insertions(+) 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): -- cgit