Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
07c1ba1f
Commit
07c1ba1f
authored
Mar 01, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TagId3: disable charset conversion without GLib
parent
14168ead
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
TagId3.cxx
src/tag/TagId3.cxx
+9
-0
No files found.
src/tag/TagId3.cxx
View file @
07c1ba1f
...
...
@@ -33,7 +33,10 @@
#include "fs/Path.hxx"
#include "fs/FileSystem.hxx"
#ifdef HAVE_GLIB
#include <glib.h>
#endif
#include <id3tag.h>
#include <string>
...
...
@@ -90,6 +93,7 @@ import_id3_string(bool is_id3v1, const id3_ucs4_t *ucs4)
{
id3_utf8_t
*
utf8
;
#ifdef HAVE_GLIB
/* use encoding field here? */
const
char
*
encoding
;
if
(
is_id3v1
&&
...
...
@@ -112,10 +116,15 @@ import_id3_string(bool is_id3v1, const id3_ucs4_t *ucs4)
}
free
(
isostr
);
}
else
{
#else
(
void
)
is_id3v1
;
#endif
utf8
=
id3_ucs4_utf8duplicate
(
ucs4
);
if
(
gcc_unlikely
(
utf8
==
nullptr
))
return
nullptr
;
#ifdef HAVE_GLIB
}
#endif
id3_utf8_t
*
utf8_stripped
=
(
id3_utf8_t
*
)
xstrdup
(
Strip
((
char
*
)
utf8
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment