summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
authorKira <91432991+cloudykira@users.noreply.github.com>2022-01-05 10:45:11 -0800
committerjaseg <git@jaseg.de>2022-04-17 22:42:40 +0200
commit2b3249a73ddf23a4285538dcf1dbe4241374de70 (patch)
treefbb83b8ae58d4393055644174d3d2119867d50a9 /mpv.py
parentc12e1ed8a178aba2c90e248427fe1590561d31ed (diff)
downloadpython-mpv-2b3249a73ddf23a4285538dcf1dbe4241374de70.tar.gz
python-mpv-2b3249a73ddf23a4285538dcf1dbe4241374de70.tar.bz2
python-mpv-2b3249a73ddf23a4285538dcf1dbe4241374de70.zip
mpv.py: change mpv_detach_destroy to mpv_destroy
Diffstat (limited to 'mpv.py')
-rw-r--r--mpv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpv.py b/mpv.py
index b9d1fe3..fd61674 100644
--- a/mpv.py
+++ b/mpv.py
@@ -532,7 +532,7 @@ _mpv_create = backend.mpv_create
_handle_func('mpv_create_client', [c_char_p], MpvHandle, notnull_errcheck)
_handle_func('mpv_client_name', [], c_char_p, errcheck=None)
_handle_func('mpv_initialize', [], c_int, ec_errcheck)
-_handle_func('mpv_detach_destroy', [], None, errcheck=None)
+_handle_func('mpv_destroy', [], None, errcheck=None)
_handle_func('mpv_terminate_destroy', [], None, errcheck=None)
_handle_func('mpv_load_config_file', [c_char_p], c_int, ec_errcheck)
_handle_func('mpv_get_time_us', [], c_ulonglong, errcheck=None)
@@ -885,7 +885,7 @@ class MPV(object):
self._message_handlers[target](*args)
if eid == MpvEventID.SHUTDOWN:
- _mpv_detach_destroy(self._event_handle)
+ _mpv_destroy(self._event_handle)
return
except Exception as e: