tag_id3: fix indentation
Indentation was broken in tag_id3.c: it used 4 spaces instead of tabs.
This commit is contained in:
parent
cf7ed8c5df
commit
2a47e90cf5
@ -45,36 +45,36 @@
|
|||||||
*/
|
*/
|
||||||
static id3_utf8_t * processID3FieldString (int is_id3v1, const id3_ucs4_t *ucs4, int type)
|
static id3_utf8_t * processID3FieldString (int is_id3v1, const id3_ucs4_t *ucs4, int type)
|
||||||
{
|
{
|
||||||
id3_utf8_t *utf8;
|
id3_utf8_t *utf8;
|
||||||
id3_latin1_t *isostr;
|
id3_latin1_t *isostr;
|
||||||
char *encoding;
|
char *encoding;
|
||||||
|
|
||||||
if (type == TAG_ITEM_GENRE)
|
if (type == TAG_ITEM_GENRE)
|
||||||
ucs4 = id3_genre_name(ucs4);
|
ucs4 = id3_genre_name(ucs4);
|
||||||
/* use encoding field here? */
|
/* use encoding field here? */
|
||||||
if (is_id3v1 &&
|
if (is_id3v1 &&
|
||||||
(encoding = getConfigParamValue(CONF_ID3V1_ENCODING))) {
|
(encoding = getConfigParamValue(CONF_ID3V1_ENCODING))) {
|
||||||
isostr = id3_ucs4_latin1duplicate(ucs4);
|
isostr = id3_ucs4_latin1duplicate(ucs4);
|
||||||
if (mpd_unlikely(!isostr)) {
|
if (mpd_unlikely(!isostr)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
setCharSetConversion("UTF-8", encoding);
|
setCharSetConversion("UTF-8", encoding);
|
||||||
utf8 = xmalloc(strlen((char *)isostr) + 1);
|
utf8 = xmalloc(strlen((char *)isostr) + 1);
|
||||||
utf8 = (id3_utf8_t *)char_conv_str((char *)utf8, (char *)isostr);
|
utf8 = (id3_utf8_t *)char_conv_str((char *)utf8, (char *)isostr);
|
||||||
if (!utf8) {
|
if (!utf8) {
|
||||||
DEBUG("Unable to convert %s string to UTF-8: "
|
DEBUG("Unable to convert %s string to UTF-8: "
|
||||||
"'%s'\n", encoding, isostr);
|
"'%s'\n", encoding, isostr);
|
||||||
free(isostr);
|
free(isostr);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
free(isostr);
|
free(isostr);
|
||||||
} else {
|
} else {
|
||||||
utf8 = id3_ucs4_utf8duplicate(ucs4);
|
utf8 = id3_ucs4_utf8duplicate(ucs4);
|
||||||
if (mpd_unlikely(!utf8)) {
|
if (mpd_unlikely(!utf8)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return utf8;
|
return utf8;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct tag *getID3Info(
|
static struct tag *getID3Info(
|
||||||
|
Loading…
Reference in New Issue
Block a user