summaryrefslogtreecommitdiffstats
path: root/media-plugins/xmms-mpg123/files/xmms-ds-id3v2fix.patch
blob: 483ba57e84e688c07308556fae6de72411e0a296 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -dPNur xmms-1.2.10/Input/mpg123/id3_frame_content.c xmms-1.2.10-new/Input/mpg123/id3_frame_content.c
--- xmms-1.2.10/Input/mpg123/id3_frame_content.c	2006-11-23 10:09:31.000000000 +0400
+++ xmms-1.2.10-new/Input/mpg123/id3_frame_content.c	2006-11-23 10:10:28.000000000 +0400
@@ -48,6 +48,8 @@
 	text_beg = text = id3_string_decode(ID3_TEXT_FRAME_ENCODING(frame),
 					    ID3_TEXT_FRAME_PTR(frame));
 
+	if (!text_beg) return NULL;
+
 	/*
 	 * If content is just plain text, return it.
 	 */