summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mpv.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mpv.py b/mpv.py
index 3916462..fc03f7c 100644
--- a/mpv.py
+++ b/mpv.py
@@ -8,7 +8,10 @@ from warnings import warn
# vim: ts=4 sw=4
-backend = CDLL('libmpv.so')
+if os.name == 'nt':
+ backend = CDLL('mpv-1.dll')
+else:
+ backend = CDLL('libmpv.so')
class MpvHandle(c_void_p):