diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2021-03-27 03:05:19 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2021-03-27 03:05:19 +0100 |
commit | 448f6f91c7bd14d9e4ad26ac4793a9d59845c0cd (patch) | |
tree | 825f7f2839435991f7148f1cebdb29813b9d34e2 /3rdparty/mpg123/2012_all_mpg123-id3convert.patch | |
parent | 86973510c4730cc7d25fcf7442ebb49ddefcaec0 (diff) | |
download | rusxmms2-448f6f91c7bd14d9e4ad26ac4793a9d59845c0cd.tar.gz rusxmms2-448f6f91c7bd14d9e4ad26ac4793a9d59845c0cd.tar.bz2 rusxmms2-448f6f91c7bd14d9e4ad26ac4793a9d59845c0cd.tar.xz rusxmms2-448f6f91c7bd14d9e4ad26ac4793a9d59845c0cd.zip |
Restructure to make XMMS just one of the patches
Diffstat (limited to '3rdparty/mpg123/2012_all_mpg123-id3convert.patch')
-rw-r--r-- | 3rdparty/mpg123/2012_all_mpg123-id3convert.patch | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/3rdparty/mpg123/2012_all_mpg123-id3convert.patch b/3rdparty/mpg123/2012_all_mpg123-id3convert.patch deleted file mode 100644 index 8c1b76b..0000000 --- a/3rdparty/mpg123/2012_all_mpg123-id3convert.patch +++ /dev/null @@ -1,41 +0,0 @@ -diff -dPNur xmms-1.2.11/Input/mpg123/mpg123.c xmms-1.2.11-new/Input/mpg123/mpg123.c ---- xmms-1.2.11/Input/mpg123/mpg123.c 2007-11-24 23:53:33.000000000 +0100 -+++ xmms-1.2.11-new/Input/mpg123/mpg123.c 2007-11-24 23:55:43.000000000 +0100 -@@ -2,6 +2,7 @@ - #include "id3_header.h" - #include "libxmms/configfile.h" - #include "libxmms/titlestring.h" -+#include "libxmms/charset.h" - #include <string.h> - #include <stdlib.h> - #include <pthread.h> -@@ -400,6 +401,14 @@ - return ext; - } - -+static char *convert_id3v1_field(const char *v1field, unsigned len) -+{ -+ char *tmp = g_strndup(v1field, len); -+ char *v2field = xmms_charset_from_latin1(g_strstrip(tmp)); -+ g_free(tmp); -+ return v2field; -+} -+ - /* - * Function id3v1_to_id3v2 (v1, v2) - * -@@ -411,10 +420,10 @@ - char *year; - struct id3v2tag_t *v2 = g_malloc0(sizeof (struct id3v2tag_t)); - -- v2->title = g_strstrip(g_strndup(v1->title, 30)); -- v2->artist = g_strstrip(g_strndup(v1->artist, 30)); -- v2->album = g_strstrip(g_strndup(v1->album, 30)); -- v2->comment = g_strstrip(g_strndup(v1->u.v1_0.comment, 30)); -+ v2->title = convert_id3v1_field(v1->title, 30); -+ v2->artist = convert_id3v1_field(v1->artist, 30); -+ v2->album = convert_id3v1_field(v1->album, 30); -+ v2->comment = convert_id3v1_field(v1->u.v1_0.comment, 30); - v2->genre = g_strstrip(g_strdup(mpg123_get_id3_genre(v1->genre))); - - year = g_strndup(v1->year, 4); |