[tracker/tracker-0.6] Fixes NB#125128, junk characters are shown in artist field of some of the
- From: Mikael Ottela <mottela src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.6] Fixes NB#125128, junk characters are shown in artist field of some of the
- Date: Thu, 3 Sep 2009 17:32:44 +0000 (UTC)
commit 1735041c29c3804523b41564f6c41c651018bceb
Author: Mikael Ottela <mikael ottela ixonos com>
Date: Wed Sep 2 13:17:33 2009 +0300
Fixes NB#125128, junk characters are shown in artist field of some of the
audio files.
Do not rely too much on enca getting things right.
src/tracker-extract/tracker-extract-mp3.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index e81d2a4..03fb733 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -1056,14 +1056,14 @@ get_id3v24_tags (const gchar *data,
NULL, NULL, NULL);
break;
case 0x01 :
- word = t_convert (&data[pos + 11],
+ word = g_convert (&data[pos + 11],
csize - 1,
"UTF-8",
info->encoding ? info->encoding : "UTF-16",
NULL, NULL, NULL);
break;
case 0x02 :
- word = t_convert (&data[pos + 11],
+ word = g_convert (&data[pos + 11],
csize - 1,
"UTF-8",
info->encoding ? info->encoding : "UTF-16BE",
@@ -1168,14 +1168,14 @@ get_id3v24_tags (const gchar *data,
NULL, NULL, NULL);
break;
case 0x01:
- word = t_convert (text,
+ word = g_convert (text,
csize - offset,
"UTF-8",
info->encoding ? info->encoding : "UTF-16",
NULL, NULL, NULL);
break;
case 0x02:
- word = t_convert (text,
+ word = g_convert (text,
csize-offset,
"UTF-8",
info->encoding ? info->encoding : "UTF-16BE",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]