From 2b3249a73ddf23a4285538dcf1dbe4241374de70 Mon Sep 17 00:00:00 2001 From: Kira <91432991+cloudykira@users.noreply.github.com> Date: Wed, 5 Jan 2022 10:45:11 -0800 Subject: mpv.py: change mpv_detach_destroy to mpv_destroy --- mpv.py | 4 ++-- 1 file 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: -- cgit