Mercurial > audlegacy
changeset 2488:c5075a79f1aa trunk
[svn] make input->set_info overwrite tuple->track_name. it allows input
plugins to update fileinfopopup along with meta data in a stream. it
may incur side effects, please let me know if you find any problem.
author | yaz |
---|---|
date | Thu, 08 Feb 2007 07:00:02 -0800 |
parents | ba8c2a94262c |
children | e56a55d07935 |
files | ChangeLog src/audacious/build_stamp.c src/audacious/playlist.c |
diffstat | 3 files changed, 17 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Feb 08 01:43:09 2007 -0800 +++ b/ChangeLog Thu Feb 08 07:00:02 2007 -0800 @@ -1,3 +1,11 @@ +2007-02-08 09:43:09 +0000 Yoshiki Yazawa <yaz@cc.rim.or.jp> + revision [3984] + - suppress warning + + trunk/src/audacious/ui_fileinfopopup.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2007-02-08 05:08:20 +0000 Yoshiki Yazawa <yaz@cc.rim.or.jp> revision [3982] - make SIGTERM handler always work.
--- a/src/audacious/build_stamp.c Thu Feb 08 01:43:09 2007 -0800 +++ b/src/audacious/build_stamp.c Thu Feb 08 07:00:02 2007 -0800 @@ -1,2 +1,2 @@ #include <glib.h> -const gchar *svn_stamp = "20070208-3982"; +const gchar *svn_stamp = "20070208-3984";
--- a/src/audacious/playlist.c Thu Feb 08 01:43:09 2007 -0800 +++ b/src/audacious/playlist.c Thu Feb 08 07:00:02 2007 -0800 @@ -974,6 +974,14 @@ g_free(playlist->position->title); playlist->position->title = g_strdup(title); playlist->position->length = length; + + // overwrite tuple->track_name, mainly for streaming. it may incur side effects. --yaz + if(playlist->position->tuple){ + if(playlist->position->tuple->track_name){ + g_free(playlist->position->tuple->track_name); + } + playlist->position->tuple->track_name = g_strdup(title); + } } PLAYLIST_UNLOCK(playlist->mutex);