mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 20:42:37 +01:00
treat ctypes .value as bytes in thumbnails plugin
This commit is contained in:
parent
8fa71f78fe
commit
3112a18463
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ def copy_c_string(c_string):
|
|||
# work. A more surefire way would be to allocate a ctypes buffer and copy
|
||||
# the data with `memcpy` or somesuch.
|
||||
s = ctypes.cast(c_string, ctypes.c_char_p).value
|
||||
return '' + s
|
||||
return b'' + s
|
||||
|
||||
|
||||
class GioURI(URIGetter):
|
||||
|
|
|
|||
Loading…
Reference in a new issue