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
cc663925
Commit
cc663925
authored
Oct 05, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apply dottemag's id3v1 encodings patch
git-svn-id:
https://svn.musicpd.org/mpd/trunk@2163
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
c21084d9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
conf.c
src/conf.c
+3
-2
conf.h
src/conf.h
+1
-0
tag.c
src/tag.c
+14
-0
No files found.
src/conf.c
View file @
cc663925
...
...
@@ -37,7 +37,7 @@
#define CONF_COMMENT '#'
#define CONF_NUMBER_OF_PARAMS 4
1
#define CONF_NUMBER_OF_PARAMS 4
2
#define CONF_NUMBER_OF_PATHS 6
#define CONF_NUMBER_OF_REQUIRED 5
#define CONF_NUMBER_OF_ALLOW_CATS 1
...
...
@@ -137,7 +137,8 @@ char ** readConf(char * file) {
"shout_mount"
,
"shout_name"
,
"shout_user"
,
"shout_quality"
"shout_quality"
,
"id3v1_encoding"
};
int
conf_absolutePaths
[
CONF_NUMBER_OF_PATHS
]
=
{
...
...
src/conf.h
View file @
cc663925
...
...
@@ -62,6 +62,7 @@
#define CONF_SHOUT_NAME 38
#define CONF_SHOUT_USER 39
#define CONF_SHOUT_QUALITY 40
#define CONF_ID3V1_ENCODING 41
#define CONF_CAT_CHAR "\n"
...
...
src/tag.c
View file @
cc663925
...
...
@@ -23,6 +23,8 @@
#include "utf8.h"
#include "log.h"
#include "inputStream.h"
#include "conf.h"
#include "charConv.h"
#include <sys/stat.h>
#include <stdlib.h>
...
...
@@ -91,6 +93,18 @@ char * getID3Info(struct id3_tag * tag, char * id) {
utf8
=
id3_ucs4_utf8duplicate
(
ucs4
);
if
(
!
utf8
)
return
NULL
;
if
(
getConf
()[
CONF_ID3V1_ENCODING
]
&&
(
id3_tag_options
(
tag
,
0
,
0
)
&
ID3_TAG_OPTION_ID3V1
))
{
char
*
isostr
;
setCharSetConversion
(
"ISO-8859-1"
,
"UTF-8"
);
isostr
=
convStrDup
(
utf8
);
free
(
utf8
);
setCharSetConversion
(
"UTF-8"
,
getConf
()[
CONF_ID3V1_ENCODING
]);
utf8
=
convStrDup
(
isostr
);
free
(
isostr
);
}
return
utf8
;
}
#endif
...
...
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