changeset 468:2e4d10f3f9cb trunk

[svn] - always make sure the returned data is strdup'd
author nenolod
date Sun, 21 Jan 2007 01:55:08 -0800
parents a3bf53abebf5
children 1256144d2a6e
files ChangeLog src/mpg123/common.c
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Jan 21 01:49:43 2007 -0800
+++ b/ChangeLog	Sun Jan 21 01:55:08 2007 -0800
@@ -1,3 +1,13 @@
+2007-01-21 09:49:43 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [1020]
+  - implement mpgdec_metadata()
+  - partial shoutcast streamtitle support
+  
+  trunk/src/mpg123/common.c |    8 ++++++++
+  trunk/src/mpg123/mpg123.c |    3 +--
+  2 files changed, 9 insertions(+), 2 deletions(-)
+
+
 2007-01-21 07:31:12 +0000  Daniel Barkalow <barkalow@iabervon.org>
   revision [1018]
   Handle inline metadata. Parsing of tags needs work before it will not crash on
--- a/src/mpg123/common.c	Sun Jan 21 01:49:43 2007 -0800
+++ b/src/mpg123/common.c	Sun Jan 21 01:55:08 2007 -0800
@@ -104,7 +104,7 @@
 	if (filept == NULL)
 		return NULL;
 
-	return vfs_get_metadata(filept, id);
+	return g_strdup(vfs_get_metadata(filept, id));
 }
 
 /****************************************