Mercurial > audlegacy-plugins
changeset 1681:3f9c00a2870f
xspf: use playlist_set_current_name when loading title
author | Kieran Clancy <clancy.kieran+audacious@gmail.com> |
---|---|
date | Mon, 10 Sep 2007 15:10:19 +0930 |
parents | dfcb24515a4e |
children | c6ad1843df46 |
files | src/xspf/xspf.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xspf/xspf.c Mon Sep 10 09:42:48 2007 +0900 +++ b/src/xspf/xspf.c Mon Sep 10 15:10:19 2007 +0930 @@ -302,9 +302,7 @@ xmlChar *title = xmlNodeGetContent(nptr2); if (title && *title) { - gchar *old = plist->title; - plist->title = g_strdup((gchar*)title); - g_free(old); + playlist_set_current_name(plist, (gchar*)title); } xmlFree(title); } else