diff options
author | Max Kellermann <max@duempel.org> | 2008-10-15 19:29:46 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-15 19:29:46 +0200 |
commit | 2a47e90cf5c6585e5b0a8f4d0f2b2a27a891a8d9 (patch) | |
tree | 2be79a9bee491f4261faf9277d8f62d9ece34d0e | |
parent | cf7ed8c5df3ca2a4a10c389097732d9e55234ae4 (diff) | |
download | mpd-2a47e90cf5c6585e5b0a8f4d0f2b2a27a891a8d9.tar.gz mpd-2a47e90cf5c6585e5b0a8f4d0f2b2a27a891a8d9.tar.xz mpd-2a47e90cf5c6585e5b0a8f4d0f2b2a27a891a8d9.zip |
tag_id3: fix indentation
Indentation was broken in tag_id3.c: it used 4 spaces instead of tabs.
-rw-r--r-- | src/tag_id3.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/tag_id3.c b/src/tag_id3.c index 42e2945db..7fcf9f0a1 100644 --- a/src/tag_id3.c +++ b/src/tag_id3.c @@ -45,36 +45,36 @@ */ static id3_utf8_t * processID3FieldString (int is_id3v1, const id3_ucs4_t *ucs4, int type) { - id3_utf8_t *utf8; - id3_latin1_t *isostr; + id3_utf8_t *utf8; + id3_latin1_t *isostr; char *encoding; - if (type == TAG_ITEM_GENRE) - ucs4 = id3_genre_name(ucs4); - /* use encoding field here? */ - if (is_id3v1 && - (encoding = getConfigParamValue(CONF_ID3V1_ENCODING))) { - isostr = id3_ucs4_latin1duplicate(ucs4); - if (mpd_unlikely(!isostr)) { - return NULL; - } - setCharSetConversion("UTF-8", encoding); - utf8 = xmalloc(strlen((char *)isostr) + 1); - utf8 = (id3_utf8_t *)char_conv_str((char *)utf8, (char *)isostr); - if (!utf8) { - DEBUG("Unable to convert %s string to UTF-8: " - "'%s'\n", encoding, isostr); - free(isostr); - return NULL; - } - free(isostr); - } else { - utf8 = id3_ucs4_utf8duplicate(ucs4); - if (mpd_unlikely(!utf8)) { - return NULL; - } - } - return utf8; + if (type == TAG_ITEM_GENRE) + ucs4 = id3_genre_name(ucs4); + /* use encoding field here? */ + if (is_id3v1 && + (encoding = getConfigParamValue(CONF_ID3V1_ENCODING))) { + isostr = id3_ucs4_latin1duplicate(ucs4); + if (mpd_unlikely(!isostr)) { + return NULL; + } + setCharSetConversion("UTF-8", encoding); + utf8 = xmalloc(strlen((char *)isostr) + 1); + utf8 = (id3_utf8_t *)char_conv_str((char *)utf8, (char *)isostr); + if (!utf8) { + DEBUG("Unable to convert %s string to UTF-8: " + "'%s'\n", encoding, isostr); + free(isostr); + return NULL; + } + free(isostr); + } else { + utf8 = id3_ucs4_utf8duplicate(ucs4); + if (mpd_unlikely(!utf8)) { + return NULL; + } + } + return utf8; } static struct tag *getID3Info( |