diff --git a/mpv.py b/mpv.py index f9bf561..7d06c09 100644 --- a/mpv.py +++ b/mpv.py @@ -70,7 +70,7 @@ sofile = ctypes.util.find_library('mpv') if sofile is None: raise OSError("Cannot find libmpv in the usual places. Depending on your distro, you may try installing an mpv-devel or mpv-libs package. If you have libmpv around but this script can't find it, consult the documentation for ctypes.util.find_library which this script uses to look up the library filename.") - backend = CDLL(sofile) + backend = CDLL(sofile, ctypes.RTLD_GLOBAL) fs_enc = sys.getfilesystemencoding()