-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hypnotix: Fix launching with mpv 0.35.0
See hypnotix issue 254 for more info.
- Loading branch information
1 parent
6e8d5bb
commit f0c5278
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
pkgs/applications/video/hypnotix/fix-deprecated-mpv-detach-destroy.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/usr/lib/hypnotix/mpv.py b/usr/lib/hypnotix/mpv.py | ||
index f42a3be..db94bf6 100644 | ||
--- a/usr/lib/hypnotix/mpv.py | ||
+++ b/usr/lib/hypnotix/mpv.py | ||
@@ -528,7 +528,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) | ||
@@ -881,7 +881,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: |