Mercurial > audlegacy
diff src/audacious/playlist.c @ 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 | bb2f191895ce |
children | e56a55d07935 |
line wrap: on
line diff
--- 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);