mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
Thumbnails: Declare more interface types
Seems to address a segfault indicated in #1433, but there are still crashes lurking.
This commit is contained in:
parent
fd2cacbc25
commit
530b42156b
1 changed files with 5 additions and 0 deletions
|
|
@ -234,8 +234,13 @@ class GioURI(URIGetter):
|
|||
self.available = bool(self.libgio)
|
||||
if self.available:
|
||||
self.libgio.g_type_init() # for glib < 2.36
|
||||
|
||||
self.libgio.g_file_get_uri.argtypes = [ctypes.c_char_p]
|
||||
self.libgio.g_file_new_for_path.restype = ctypes.c_void_p
|
||||
|
||||
self.libgio.g_file_get_uri.argtypes = [ctypes.c_void_p]
|
||||
self.libgio.g_file_get_uri.restype = ctypes.c_char_p
|
||||
|
||||
self.libgio.g_object_unref.argtypes = [ctypes.c_void_p]
|
||||
|
||||
def get_library(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue