Skip to content

Commit 2e6516a

Browse files
committed
Added optional loading of liblua
1 parent 9b68b08 commit 2e6516a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mpv.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ def _event_generator(handle):
244244
raise StopIteration()
245245
yield event
246246

247+
def load_lua():
248+
""" Use this function if you intend to use mpv's built-in lua interpreter. This is e.g. needed for playback of
249+
youtube urls. """
250+
CDLL('liblua.so', mode=RTLD_GLOBAL)
251+
247252
class MPV:
248253
""" See man mpv(1) for the details of the implemented commands. """
249254
def __init__(self, loop=None, **kwargs):

0 commit comments

Comments
 (0)