tagfile wchar fix.
This commit is contained in:
+11
-9
@@ -137,15 +137,17 @@
|
||||
(make-tags-picture mimetype kind bm #:description description))
|
||||
|
||||
(define (open-tag-file file)
|
||||
(if (eq? (system-type 'os) 'windows)
|
||||
(let ((tag-file (taglib_file_new_wchar file)))
|
||||
(if (and tag-file (taglib_file_is_valid tag-file))
|
||||
tag-file
|
||||
#f))
|
||||
(let ((tag-file (taglib_file_new file)))
|
||||
(if (and tag-file (taglib_file_is_valid tag-file))
|
||||
tag-file
|
||||
#f))))
|
||||
(let ((tag-file (if (eq? (system-type 'os) 'windows)
|
||||
(taglib_file_new_wchar file)
|
||||
(taglib_file_new file))))
|
||||
(cond
|
||||
((eq? tag-file #f) #f)
|
||||
((taglib_file_is_valid tag-file) tag-file)
|
||||
(else
|
||||
(taglib_file_free tag-file)
|
||||
#f))
|
||||
)
|
||||
)
|
||||
|
||||
(define (read-property-map tag-file)
|
||||
(define key-store (make-hash))
|
||||
|
||||
Reference in New Issue
Block a user